Interface IFileStreamProvider
Abstraction over FileStream to make it easy to integrate with
cloud blob / stream providers.
Assembly: ZoneTree.dll
Syntax
public interface IFileStreamProvider
Methods
|
Improve this Doc
View Source
CombinePaths(string, string)
Declaration
string CombinePaths(string path1, string path2)
Parameters
Returns
|
Improve this Doc
View Source
CreateDirectory(string)
Declaration
void CreateDirectory(string path)
Parameters
Type |
Name |
Description |
string |
path |
|
|
Improve this Doc
View Source
CreateFileStream(string, FileMode, FileAccess, FileShare, int, FileOptions)
Declaration
IFileStream CreateFileStream(string path, FileMode mode, FileAccess access, FileShare share, int bufferSize = 4096, FileOptions options = FileOptions.None)
Parameters
Returns
|
Improve this Doc
View Source
DeleteDirectory(string, bool)
Declaration
void DeleteDirectory(string path, bool recursive)
Parameters
|
Improve this Doc
View Source
DeleteFile(string)
Declaration
void DeleteFile(string path)
Parameters
Type |
Name |
Description |
string |
path |
|
|
Improve this Doc
View Source
DirectoryExists(string)
Declaration
bool DirectoryExists(string path)
Parameters
Type |
Name |
Description |
string |
path |
|
Returns
|
Improve this Doc
View Source
FileExists(string)
Declaration
bool FileExists(string path)
Parameters
Type |
Name |
Description |
string |
path |
|
Returns
|
Improve this Doc
View Source
GetDirectories(string)
Declaration
IReadOnlyList<string> GetDirectories(string path)
Parameters
Type |
Name |
Description |
string |
path |
|
Returns
|
Improve this Doc
View Source
GetDurableFileWriter()
Declaration
DurableFileWriter GetDurableFileWriter()
Returns
|
Improve this Doc
View Source
ReadAllBytes(string)
Declaration
byte[] ReadAllBytes(string path)
Parameters
Type |
Name |
Description |
string |
path |
|
Returns
|
Improve this Doc
View Source
ReadAllText(string)
Declaration
string ReadAllText(string path)
Parameters
Type |
Name |
Description |
string |
path |
|
Returns
|
Improve this Doc
View Source
Replace(string, string, string)
Declaration
void Replace(string sourceFileName, string destinationFileName, string destinationBackupFileName)
Parameters
Type |
Name |
Description |
string |
sourceFileName |
|
string |
destinationFileName |
|
string |
destinationBackupFileName |
|