Method | Description | |
---|---|---|
CopyFile ( string path, string targetPath, bool overwrite = false ) : void | ||
CopyFilesToFolder ( this |
||
FormatPath ( this path, UriKind kind, string basePath = null ) : string |
Also change backslash to forward slash
|
|
GetFileListFromFile ( string filePath ) : List |
||
GetFullPath ( string folder, string href ) : string | ||
IsPathUnderSpecificFolder ( string path, string folder ) : bool | ||
IsRelativePath ( string path ) : bool | ||
IsVaildFilePath ( string path ) : bool |
http://stackoverflow.com/questions/422090/in-c-sharp-check-that-filename-is-possibly-valid-not-that-it-exists
|
|
MakeRelativePath ( string basePath, string absolutePath ) : string |
Creates a relative path from one file or folder to another.
|
|
NormalizePath ( string path ) : string | ||
SaveFileListToFile ( List |
||
ToValidFilePath ( this input ) : string |
public static CopyFile ( string path, string targetPath, bool overwrite = false ) : void | ||
path | string | |
targetPath | string | |
overwrite | bool | |
return | void |
public static CopyFilesToFolder ( this |
||
files | this |
|
sourceFolder | string | |
destinationFolder | string | |
overwrite | bool | |
messageHandler | Action |
|
errorHandler | bool>.Func | |
return | IEnumerable |
public static FormatPath ( this path, UriKind kind, string basePath = null ) : string | ||
path | this | |
kind | UriKind | |
basePath | string | |
return | string |
public static GetFileListFromFile ( string filePath ) : List |
||
filePath | string | |
return | List |
public static GetFullPath ( string folder, string href ) : string | ||
folder | string | |
href | string | |
return | string |
public static IsPathUnderSpecificFolder ( string path, string folder ) : bool | ||
path | string | |
folder | string | |
return | bool |
public static IsRelativePath ( string path ) : bool | ||
path | string | |
return | bool |
public static IsVaildFilePath ( string path ) : bool | ||
path | string | |
return | bool |
public static MakeRelativePath ( string basePath, string absolutePath ) : string | ||
basePath | string | Contains the directory that defines the start of the relative path. |
absolutePath | string | Contains the path that defines the endpoint of the relative path. |
return | string |
public static NormalizePath ( string path ) : string | ||
path | string | |
return | string |
public static SaveFileListToFile ( List |
||
fileList | List |
|
filePath | string | |
return | void |
public static ToValidFilePath ( this input ) : string | ||
input | this | |
return | string |