Méthode | Description | |
---|---|---|
CombinePaths ( string path1, string path2 ) : string |
Combines two path strings. On *nix, processing is delegated to System.IO.Path.Combine(string, string). On Windows, this method normalized the paths to avoid running into the 260 character limit of a path and converts forward slashes in both path1 and path2 to the platform's directory separator character. |
|
CopyFile ( string sourceFileName, string destFileName, |
Copies a file filtering its content through the filter chain.
|
|
GetFullPath ( string path ) : string |
Returns Absolute Path (Fix for 260 Char Limit of Path.GetFullPath(...))
|
|
GetHomeDirectory ( ) : string |
Returns the home directory of the current user.
|
|
GetTempDirectory ( ) : |
Returns a uniquely named empty temporary directory on disk.
|
|
MoveFile ( string sourceFileName, string destFileName, |
Moves a file filtering its content through the filter chain.
|
|
ReadFile ( string fileName, |
Reads a file filtering its content through the filter chain. If inputEncoding is |
|
ResolveFile ( string directories, string fileName, bool recursive ) : string |
Scans a list of directories for the specified filename. The directories are scanned in the order in which they are defined. |
Méthode | Description | |
---|---|---|
FileUtils ( ) : System | ||
ScanDirectory ( string directory, string fileName, bool recursive ) : string |
public static CombinePaths ( string path1, string path2 ) : string | ||
path1 | string | The first path. |
path2 | string | The second path. |
Résultat | string |
public static CopyFile ( string sourceFileName, string destFileName, |
||
sourceFileName | string | The file to copy |
destFileName | string | The file to copy to |
filterChain | Chain of filters to apply when copying, or |
|
inputEncoding | The encoding used to read the soure file. | |
outputEncoding | The encoding used to write the destination file. | |
Résultat | void |
public static GetFullPath ( string path ) : string | ||
path | string | The file or directory for which to obtain absolute path information. |
Résultat | string |
public static GetHomeDirectory ( ) : string | ||
Résultat | string |
public static GetTempDirectory ( ) : |
||
Résultat |
public static MoveFile ( string sourceFileName, string destFileName, |
||
sourceFileName | string | The file to move. |
destFileName | string | The file to move move to. |
filterChain | Chain of filters to apply when moving, or |
|
inputEncoding | The encoding used to read the soure file. | |
outputEncoding | The encoding used to write the destination file. | |
Résultat | void |
public static ReadFile ( string fileName, |
||
fileName | string | The file to read. |
filterChain | Chain of filters to apply when reading, or |
|
inputEncoding | The encoding used to read the file. | |
Résultat | string |
public static ResolveFile ( string directories, string fileName, bool recursive ) : string | ||
directories | string | The list of directories to search. |
fileName | string | The name of the file to look for. |
recursive | bool | Specifies whether the directory should be searched recursively. |
Résultat | string |