C# 클래스 FileStore.FileStore

파일 보기 프로젝트 열기: gratianlup/SecureDelete 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
Separators char[]
files StoreFile>.Dictionary

공개 메소드들

메소드 설명
CreateFile ( string path ) : StoreFile

Creates a file.

CreateFolder ( string path ) : void

Creates a folder.

DeleteFile ( string path ) : void

Deletes a file.

DeleteFolder ( string path ) : void

Deletes a folder.

FileExists ( string path ) : bool

Checks if the given file exists.

FileStore ( ) : System
FindFile ( string path, string fileName, bool subfolders ) : StoreFile

Tries to locate the given file.

FolderExists ( string path ) : bool

Checks if the given folder exists.

GetFile ( string path ) : StoreFile

Gets the file extended information.

GetFolderFiles ( string path ) : string[]

Gets a string array of the files in the given folder.

GetFolderFilesEx ( string path ) : StoreFile[]

Gets a StoreFile array of the files in the given folder.

GetSubfolders ( string path ) : string[]

Gets a string array of the subfolders in the given folder.

Load ( string path ) : bool

Loads the store from the specified path.

MoveFile ( string sourcePath, string destinationPath ) : void

Moves a file.

MoveFolder ( string sourcePath, string destinationPath ) : void

Moves a folder.

ReadFile ( StoreFile file ) : byte[]

Get the contents of the given file.

ReadFile ( string path ) : byte[]

Get the contents of the given file.

Save ( string path ) : bool

Saves the store to the specified path.

WriteFile ( StoreFile file, string dataPath, StoreMode storeMode ) : bool

Stores the data contained in the given file into the file.

WriteFile ( StoreFile file, Stream stream, StoreMode storeMode ) : void

Stores the given data into the file.

WriteFile ( StoreFile file, byte data, StoreMode storeMode ) : void

Stores the given data into the file.

비공개 메소드들

메소드 설명
CompressData ( byte data ) : byte[]
CreateFolderImpl ( string path ) : StoreFolder
DecompressData ( byte data ) : byte[]
DecryptData ( byte data ) : byte[]
DeserializeFolders ( byte data ) : bool
EncryptData ( byte data ) : byte[]
Format ( ) : void

Removes all files and folders from the store.

GetFileId ( string path ) : Guid?
GetFolder ( string path ) : StoreFolder
GetFolder ( string path, StoreFolder &parent ) : StoreFolder
InitEncryptionAlgorithm ( ) : void
SerializeFolders ( ) : MemoryStream
SetFileData ( StoreFile file, byte data, StoreMode storeMode ) : void

메소드 상세

CreateFile() 공개 메소드

Creates a file.
public CreateFile ( string path ) : StoreFile
path string The file path.
리턴 StoreFile

CreateFolder() 공개 메소드

Creates a folder.
public CreateFolder ( string path ) : void
path string The path.
리턴 void

DeleteFile() 공개 메소드

Deletes a file.
public DeleteFile ( string path ) : void
path string The file path.
리턴 void

DeleteFolder() 공개 메소드

Deletes a folder.
public DeleteFolder ( string path ) : void
path string The folder path.
리턴 void

FileExists() 공개 메소드

Checks if the given file exists.
public FileExists ( string path ) : bool
path string The file path.
리턴 bool

FileStore() 공개 메소드

public FileStore ( ) : System
리턴 System

FindFile() 공개 메소드

Tries to locate the given file.
public FindFile ( string path, string fileName, bool subfolders ) : StoreFile
path string The folder from where to start searching.
fileName string Name of the file.
subfolders bool Search in subfolders.
리턴 StoreFile

FolderExists() 공개 메소드

Checks if the given folder exists.
public FolderExists ( string path ) : bool
path string The folder path.
리턴 bool

GetFile() 공개 메소드

Gets the file extended information.
public GetFile ( string path ) : StoreFile
path string The file path.
리턴 StoreFile

GetFolderFiles() 공개 메소드

Gets a string array of the files in the given folder.
public GetFolderFiles ( string path ) : string[]
path string The folder path.
리턴 string[]

GetFolderFilesEx() 공개 메소드

Gets a StoreFile array of the files in the given folder.
public GetFolderFilesEx ( string path ) : StoreFile[]
path string The folder path.
리턴 StoreFile[]

GetSubfolders() 공개 메소드

Gets a string array of the subfolders in the given folder.
public GetSubfolders ( string path ) : string[]
path string The folder path.
리턴 string[]

Load() 공개 메소드

Loads the store from the specified path.
public Load ( string path ) : bool
path string The path.
리턴 bool

MoveFile() 공개 메소드

Moves a file.
public MoveFile ( string sourcePath, string destinationPath ) : void
sourcePath string The source path.
destinationPath string The destination path.
리턴 void

MoveFolder() 공개 메소드

Moves a folder.
public MoveFolder ( string sourcePath, string destinationPath ) : void
sourcePath string The source path.
destinationPath string The destination path.
리턴 void

ReadFile() 공개 메소드

Get the contents of the given file.
public ReadFile ( StoreFile file ) : byte[]
file StoreFile The file from which to get the data.
리턴 byte[]

ReadFile() 공개 메소드

Get the contents of the given file.
public ReadFile ( string path ) : byte[]
path string
리턴 byte[]

Save() 공개 메소드

Saves the store to the specified path.
public Save ( string path ) : bool
path string The path.
리턴 bool

WriteFile() 공개 메소드

Stores the data contained in the given file into the file.
public WriteFile ( StoreFile file, string dataPath, StoreMode storeMode ) : bool
file StoreFile The file in which to store the data.
dataPath string
storeMode StoreMode
리턴 bool

WriteFile() 공개 메소드

Stores the given data into the file.
public WriteFile ( StoreFile file, Stream stream, StoreMode storeMode ) : void
file StoreFile The file in which to store the data.
stream Stream
storeMode StoreMode
리턴 void

WriteFile() 공개 메소드

Stores the given data into the file.
public WriteFile ( StoreFile file, byte data, StoreMode storeMode ) : void
file StoreFile The file in which to store the data.
data byte The data to store.
storeMode StoreMode
리턴 void

프로퍼티 상세

Separators 공개적으로 프로퍼티

public char[] Separators
리턴 char[]

files 공개적으로 프로퍼티

public Dictionary files
리턴 StoreFile>.Dictionary