C# Class ZinOS.Services.Implementation.DesktopFileSystem.DesktopFileSystemImpl

Inheritance: IDesktopFileSystem
Exibir arquivo Open project: hiddenbyte/ZinOS

Public Methods

Method Description
CreateDirectory ( int desktopId, string dirPath ) : bool
CreateFile ( int destkopId, string targetFileNamePath, byte fileData ) : string
CreateFile ( int desktopId, string targetPath, string fileName, Stream fileStream ) : string
DeleteFile ( int desktopId, string filePath ) : bool
DesktopFileSystemImpl ( IEnumerable fileSystemProviders ) : System
GetChildrenItems ( int desktopId, FileSystemItem parentfileSystemItem ) : IEnumerable
GetDesktopRootDirectories ( int desktopId ) : IEnumerable
GetFile ( int desktopId, FileSystemItem fileSystemItem ) : Stream
PrepareFileSystem ( int desktopId ) : bool
UpdateFile ( int desktopId, string filePath, byte fileContent ) : bool
UpdateFile ( int desktopId, string filePath, string fileContent ) : bool

Private Methods

Method Description
GetPathProvider ( string filePath, IDesktopFileSystemProvider &provider ) : bool
getProviderName ( string path ) : string
validatePath ( string path ) : bool

Method Details

CreateDirectory() public method

public CreateDirectory ( int desktopId, string dirPath ) : bool
desktopId int
dirPath string
return bool

CreateFile() public method

public CreateFile ( int destkopId, string targetFileNamePath, byte fileData ) : string
destkopId int
targetFileNamePath string
fileData byte
return string

CreateFile() public method

public CreateFile ( int desktopId, string targetPath, string fileName, Stream fileStream ) : string
desktopId int
targetPath string
fileName string
fileStream Stream
return string

DeleteFile() public method

public DeleteFile ( int desktopId, string filePath ) : bool
desktopId int
filePath string
return bool

DesktopFileSystemImpl() public method

public DesktopFileSystemImpl ( IEnumerable fileSystemProviders ) : System
fileSystemProviders IEnumerable
return System

GetChildrenItems() public method

public GetChildrenItems ( int desktopId, FileSystemItem parentfileSystemItem ) : IEnumerable
desktopId int
parentfileSystemItem ZinOS.Services.Definitions.DesktopFileSystem.FileSystemItem
return IEnumerable

GetDesktopRootDirectories() public method

public GetDesktopRootDirectories ( int desktopId ) : IEnumerable
desktopId int
return IEnumerable

GetFile() public method

public GetFile ( int desktopId, FileSystemItem fileSystemItem ) : Stream
desktopId int
fileSystemItem ZinOS.Services.Definitions.DesktopFileSystem.FileSystemItem
return Stream

PrepareFileSystem() public method

public PrepareFileSystem ( int desktopId ) : bool
desktopId int
return bool

UpdateFile() public method

public UpdateFile ( int desktopId, string filePath, byte fileContent ) : bool
desktopId int
filePath string
fileContent byte
return bool

UpdateFile() public method

public UpdateFile ( int desktopId, string filePath, string fileContent ) : bool
desktopId int
filePath string
fileContent string
return bool