Property | Type | Description | |
---|---|---|---|
MaxPathLength | int |
Method | Description | |
---|---|---|
Combine ( ) : string | ||
DeepCopy ( string sourceDirectory, string destinationDirectory, bool overwrite ) : void | ||
GetAbsolutePath ( string baseDirectoryPath, string relPath ) : string |
Converts a given relative path and a given base path to a path that leads to the relative path absoulte.
|
|
GetCommonBaseDirectory ( string dir1, string dir2 ) : string | ||
GetRelativePath ( string baseDirectoryPath, string absPath ) : string |
Converts a given absolute path and a given base path to a path that leads from the base path to the absoulte path. (as a relative path)
|
|
IsBaseDirectory ( string baseDirectory, string testDirectory ) : bool | ||
IsDirectory ( string filename ) : bool | ||
IsEqualFileName ( string fileName1, string fileName2 ) : bool | ||
IsUrl ( string path ) : bool | ||
IsValidDirectoryName ( string name ) : bool |
Checks that a single directory name (not the full path) is valid.
|
|
IsValidFileName ( string fileName ) : bool |
This method checks the file fileName if it is valid.
|
|
MatchesPattern ( string filename, string pattern ) : bool | ||
ObservedLoad ( FileOperationDelegate loadFile, string fileName ) : FileOperationResult | ||
ObservedLoad ( FileOperationDelegate loadFile, string fileName, FileErrorPolicy policy ) : FileOperationResult | ||
ObservedLoad ( FileOperationDelegate loadFile, string fileName, string message, FileErrorPolicy policy ) : FileOperationResult | ||
ObservedLoad ( NamedFileOperationDelegate saveFileAs, string fileName ) : FileOperationResult | ||
ObservedLoad ( NamedFileOperationDelegate saveFileAs, string fileName, FileErrorPolicy policy ) : FileOperationResult | ||
ObservedLoad ( NamedFileOperationDelegate saveFileAs, string fileName, string message, FileErrorPolicy policy ) : FileOperationResult | ||
ObservedSave ( FileOperationDelegate saveFile, string fileName ) : FileOperationResult | ||
ObservedSave ( FileOperationDelegate saveFile, string fileName, FileErrorPolicy policy ) : FileOperationResult | ||
ObservedSave ( FileOperationDelegate saveFile, string fileName, string message, FileErrorPolicy policy ) : FileOperationResult | ||
ObservedSave ( NamedFileOperationDelegate saveFileAs, string fileName ) : FileOperationResult | ||
ObservedSave ( NamedFileOperationDelegate saveFileAs, string fileName, FileErrorPolicy policy ) : FileOperationResult | ||
ObservedSave ( NamedFileOperationDelegate saveFileAs, string fileName, string message, FileErrorPolicy policy ) : FileOperationResult | ||
RenameBaseDirectory ( string fileName, string oldDirectory, string newDirectory ) : string | ||
SearchDirectory ( string directory, string filemask ) : List |
||
SearchDirectory ( string directory, string filemask, bool searchSubdirectories ) : List |
||
SearchDirectory ( string directory, string filemask, bool searchSubdirectories, bool ignoreHidden ) : List |
||
TestFileExists ( string filename ) : bool |
Method | Description | |
---|---|---|
Match ( string src, string pattern ) : bool | ||
MatchN ( string src, int srcidx, string pattern, int patidx ) : bool | ||
OnFileLoaded ( |
||
OnFileSaved ( |
||
SearchDirectory ( string directory, string filemask, List |
Finds all files which are valid to the mask filemask in the path directory and all subdirectories (if searchSubdirectories is true). The found files are added to the List<string> collection. If ignoreHidden is true, hidden files and folders are ignored.
|
public static DeepCopy ( string sourceDirectory, string destinationDirectory, bool overwrite ) : void | ||
sourceDirectory | string | |
destinationDirectory | string | |
overwrite | bool | |
return | void |
public static GetAbsolutePath ( string baseDirectoryPath, string relPath ) : string | ||
baseDirectoryPath | string | |
relPath | string | |
return | string |
public static GetCommonBaseDirectory ( string dir1, string dir2 ) : string | ||
dir1 | string | |
dir2 | string | |
return | string |
public static GetRelativePath ( string baseDirectoryPath, string absPath ) : string | ||
baseDirectoryPath | string | |
absPath | string | |
return | string |
public static IsBaseDirectory ( string baseDirectory, string testDirectory ) : bool | ||
baseDirectory | string | |
testDirectory | string | |
return | bool |
public static IsDirectory ( string filename ) : bool | ||
filename | string | |
return | bool |
public static IsEqualFileName ( string fileName1, string fileName2 ) : bool | ||
fileName1 | string | |
fileName2 | string | |
return | bool |
public static IsValidDirectoryName ( string name ) : bool | ||
name | string | |
return | bool |
public static IsValidFileName ( string fileName ) : bool | ||
fileName | string | |
return | bool |
public static MatchesPattern ( string filename, string pattern ) : bool | ||
filename | string | |
pattern | string | |
return | bool |
public static ObservedLoad ( FileOperationDelegate loadFile, string fileName ) : FileOperationResult | ||
loadFile | FileOperationDelegate | |
fileName | string | |
return | FileOperationResult |
public static ObservedLoad ( FileOperationDelegate loadFile, string fileName, FileErrorPolicy policy ) : FileOperationResult | ||
loadFile | FileOperationDelegate | |
fileName | string | |
policy | FileErrorPolicy | |
return | FileOperationResult |
public static ObservedLoad ( FileOperationDelegate loadFile, string fileName, string message, FileErrorPolicy policy ) : FileOperationResult | ||
loadFile | FileOperationDelegate | |
fileName | string | |
message | string | |
policy | FileErrorPolicy | |
return | FileOperationResult |
public static ObservedLoad ( NamedFileOperationDelegate saveFileAs, string fileName ) : FileOperationResult | ||
saveFileAs | NamedFileOperationDelegate | |
fileName | string | |
return | FileOperationResult |
public static ObservedLoad ( NamedFileOperationDelegate saveFileAs, string fileName, FileErrorPolicy policy ) : FileOperationResult | ||
saveFileAs | NamedFileOperationDelegate | |
fileName | string | |
policy | FileErrorPolicy | |
return | FileOperationResult |
public static ObservedLoad ( NamedFileOperationDelegate saveFileAs, string fileName, string message, FileErrorPolicy policy ) : FileOperationResult | ||
saveFileAs | NamedFileOperationDelegate | |
fileName | string | |
message | string | |
policy | FileErrorPolicy | |
return | FileOperationResult |
public static ObservedSave ( FileOperationDelegate saveFile, string fileName ) : FileOperationResult | ||
saveFile | FileOperationDelegate | |
fileName | string | |
return | FileOperationResult |
public static ObservedSave ( FileOperationDelegate saveFile, string fileName, FileErrorPolicy policy ) : FileOperationResult | ||
saveFile | FileOperationDelegate | |
fileName | string | |
policy | FileErrorPolicy | |
return | FileOperationResult |
public static ObservedSave ( FileOperationDelegate saveFile, string fileName, string message, FileErrorPolicy policy ) : FileOperationResult | ||
saveFile | FileOperationDelegate | |
fileName | string | |
message | string | |
policy | FileErrorPolicy | |
return | FileOperationResult |
public static ObservedSave ( NamedFileOperationDelegate saveFileAs, string fileName ) : FileOperationResult | ||
saveFileAs | NamedFileOperationDelegate | |
fileName | string | |
return | FileOperationResult |
public static ObservedSave ( NamedFileOperationDelegate saveFileAs, string fileName, FileErrorPolicy policy ) : FileOperationResult | ||
saveFileAs | NamedFileOperationDelegate | |
fileName | string | |
policy | FileErrorPolicy | |
return | FileOperationResult |
public static ObservedSave ( NamedFileOperationDelegate saveFileAs, string fileName, string message, FileErrorPolicy policy ) : FileOperationResult | ||
saveFileAs | NamedFileOperationDelegate | |
fileName | string | |
message | string | |
policy | FileErrorPolicy | |
return | FileOperationResult |
public static RenameBaseDirectory ( string fileName, string oldDirectory, string newDirectory ) : string | ||
fileName | string | |
oldDirectory | string | |
newDirectory | string | |
return | string |
public static SearchDirectory ( string directory, string filemask ) : List |
||
directory | string | |
filemask | string | |
return | List |
public static SearchDirectory ( string directory, string filemask, bool searchSubdirectories ) : List |
||
directory | string | |
filemask | string | |
searchSubdirectories | bool | |
return | List |
public static SearchDirectory ( string directory, string filemask, bool searchSubdirectories, bool ignoreHidden ) : List |
||
directory | string | |
filemask | string | |
searchSubdirectories | bool | |
ignoreHidden | bool | |
return | List |
public static TestFileExists ( string filename ) : bool | ||
filename | string | |
return | bool |