Method | Description | |
---|---|---|
CommitFile ( string backup ) : void |
Deletes backup information from SafeCopyFile
|
|
CommitFolder ( string backup ) : void | ||
CopyFile ( string sourcefile, string destfile ) : void | ||
CopyFolder ( string sourcefolder, string destfolder ) : void | ||
CreateFolder ( string folder ) : void | ||
DeleteEmptyFolder ( string filename ) : void | ||
DeleteFile ( string file ) : void | ||
DeleteFile ( string file, bool allowDelay ) : void | ||
DeleteFolder ( string folder ) : void | ||
DeleteFolder ( string folder, bool allowDelay ) : void | ||
EntrySize ( string fileordir ) : int | ||
FileInUse ( string path ) : bool | ||
FolderInUse ( string folder ) : bool | ||
GetFileVersion ( string filename ) : System.Version | ||
GetFiles ( string foldername, string searchpattern, bool recurse ) : string[] | ||
IsSourceFileNewer ( string source, string dest ) : bool |
Checks if a source file is newer than a destination file. Uses assembly version if available, then falls back to file time.
|
|
MoveFile ( string sourcefile, string destfile ) : void | ||
MoveFolder ( string sourcefolder, string destfolder ) : void | ||
ReadTextFile ( string filename ) : string | ||
RollbackFile ( string destfile, string backup ) : void |
Restores a file created by SafeCopyFile
|
|
RollbackFolder ( string destfolder, string backup ) : void | ||
SafeCopyFile ( string sourcefile, string destfile ) : string |
Copies a file. If the destination already exists, rename it.
|
|
SafeCopyFolder ( string sourcefolder, string destfolder ) : string | ||
TempName ( string basename ) : string | ||
Touch ( string path ) : void |
Method | Description | |
---|---|---|
GetFilesRecursive ( string foldername, string searchpattern, |
||
InternalDeleteFile ( string file, bool allowDelay ) : void | ||
InternalDeleteFolder ( string folder, bool allowDelay ) : void | ||
MoveFileEx ( string source, string dest, uint flags ) : bool |
public static CommitFile ( string backup ) : void | ||
backup | string | Returned backup name from original SafeCopyFile call |
return | void |
public static CommitFolder ( string backup ) : void | ||
backup | string | |
return | void |
public static CopyFile ( string sourcefile, string destfile ) : void | ||
sourcefile | string | |
destfile | string | |
return | void |
public static CopyFolder ( string sourcefolder, string destfolder ) : void | ||
sourcefolder | string | |
destfolder | string | |
return | void |
public static CreateFolder ( string folder ) : void | ||
folder | string | |
return | void |
public static DeleteEmptyFolder ( string filename ) : void | ||
filename | string | |
return | void |
public static DeleteFile ( string file ) : void | ||
file | string | |
return | void |
public static DeleteFile ( string file, bool allowDelay ) : void | ||
file | string | |
allowDelay | bool | |
return | void |
public static DeleteFolder ( string folder ) : void | ||
folder | string | |
return | void |
public static DeleteFolder ( string folder, bool allowDelay ) : void | ||
folder | string | |
allowDelay | bool | |
return | void |
public static EntrySize ( string fileordir ) : int | ||
fileordir | string | |
return | int |
public static FileInUse ( string path ) : bool | ||
path | string | |
return | bool |
public static FolderInUse ( string folder ) : bool | ||
folder | string | |
return | bool |
public static GetFileVersion ( string filename ) : System.Version | ||
filename | string | |
return | System.Version |
public static GetFiles ( string foldername, string searchpattern, bool recurse ) : string[] | ||
foldername | string | |
searchpattern | string | |
recurse | bool | |
return | string[] |
public static IsSourceFileNewer ( string source, string dest ) : bool | ||
source | string | |
dest | string | |
return | bool |
public static MoveFile ( string sourcefile, string destfile ) : void | ||
sourcefile | string | |
destfile | string | |
return | void |
public static MoveFolder ( string sourcefolder, string destfolder ) : void | ||
sourcefolder | string | |
destfolder | string | |
return | void |
public static ReadTextFile ( string filename ) : string | ||
filename | string | |
return | string |
public static RollbackFile ( string destfile, string backup ) : void | ||
destfile | string | Destination file from original SafeCopyFile call |
backup | string | Returned backup name from original SafeCopyFile call |
return | void |
public static RollbackFolder ( string destfolder, string backup ) : void | ||
destfolder | string | |
backup | string | |
return | void |
public static SafeCopyFile ( string sourcefile, string destfile ) : string | ||
sourcefile | string | |
destfile | string | |
return | string |
public static SafeCopyFolder ( string sourcefolder, string destfolder ) : string | ||
sourcefolder | string | |
destfolder | string | |
return | string |
public static TempName ( string basename ) : string | ||
basename | string | |
return | string |