Interface ICheckinFileOperations
Only public so we can access this during tests.
Assembly: SoDataBase.dll
Syntax
public interface ICheckinFileOperations
Methods
Copy(string, string, bool)
Copy the contents of the sourceFilename to the destinationFilename.
Declaration
void Copy(string sourceFileName, string destinationFileName, bool overwrite)
Parameters
Type |
Name |
Description |
string |
sourceFileName |
|
string |
destinationFileName |
|
bool |
overwrite |
|
Delete(string)
Declaration
void Delete(string fileName)
Parameters
Type |
Name |
Description |
string |
fileName |
|
Exists(string)
Check if the file exists.
Declaration
bool Exists(string fileName)
Parameters
Type |
Name |
Description |
string |
fileName |
|
Returns
Type |
Description |
bool |
True if the file exists.
|
Move(string, string)
Move the file from sourceFileName to destinationFileName
Declaration
void Move(string sourceFileName, string destinationFileName)
Parameters
Type |
Name |
Description |
string |
sourceFileName |
|
string |
destinationFileName |
|
Open(string, FileMode, FileAccess, FileShare)
Open the file in read-only.
Declaration
FileStream Open(string fileName, FileMode fileMode, FileAccess fileAccess, FileShare fileShare)
Parameters
Returns
ReadAllText(string)
Read all text from the given fileName.
Declaration
string ReadAllText(string fileName)
Parameters
Type |
Name |
Description |
string |
fileName |
|
Returns
RemoveReadOnly(string)
Remove the read-only attribute on the given file.
Declaration
void RemoveReadOnly(string fileName)
Parameters
Type |
Name |
Description |
string |
fileName |
|
SetReadOnly(string)
Set the read-only attribute on the given file.
Declaration
void SetReadOnly(string fileName)
Parameters
Type |
Name |
Description |
string |
fileName |
|
WriteAllText(string, string)
Write all text to the fileName (overwrites the existing content).
Declaration
void WriteAllText(string fileName, string text)
Parameters
Extension Methods