Метод | Описание | |
---|---|---|
AssemblyEquals ( string strExt, string strShort ) : bool | ||
ConvertSeparators ( string strPath ) : string | ||
ConvertSeparators ( string strPath, char chSeparator ) : string | ||
EnsureTerminatingSeparator ( string strPath, bool bUrl ) : string |
Ensure that a path is terminated with a directory separator character.
|
|
FileUrlToPath ( string strUrl ) : string | ||
FilterFileName ( string strName ) : string | ||
GetExtension ( string strPath ) : string |
Get the extension of a file.
|
|
GetFileDirectory ( string strFile, bool bAppendTerminatingChar, bool bEnsureValidDirSpec ) : string |
Get the directory (path) of a file name. The returned string may be terminated by a directory separator character. Example: passing
|
|
GetFileInfos ( |
||
GetFileName ( string strPath ) : string |
Gets the file name of the specified file (full path). Example: if strPath is
|
|
GetFilePaths ( string strDir, string strPattern, SearchOption opt ) : List |
||
GetHost ( string strUrl ) : string |
Get the host component of an URL. This method is faster and more fault-tolerant than creating an
|
|
GetQuotedAppPath ( string strPath ) : string |
Test if a specified path is accessible, either in read or write mode.
|
|
GetShortestAbsolutePath ( string strPath ) : string | ||
GetTempPath ( ) : string | ||
GetUrlLength ( string strText, int nOffset ) : int | ||
HideFile ( string strFile, bool bHide ) : bool | ||
IsAbsolutePath ( string strPath ) : bool | ||
IsUncPath ( string strPath ) : bool | ||
MakeAbsolutePath ( string strBaseFile, string strTargetFile ) : string | ||
MakeRelativePath ( string strBaseFile, string strTargetFile ) : string | ||
RemoveScheme ( string strUrl ) : string | ||
StripExtension ( string strPath ) : string |
Strip the extension of a file.
|
|
UnhideFile ( string strFile ) : bool |
public static AssemblyEquals ( string strExt, string strShort ) : bool | ||
strExt | string | |
strShort | string | |
Результат | bool |
public static ConvertSeparators ( string strPath ) : string | ||
strPath | string | |
Результат | string |
public static ConvertSeparators ( string strPath, char chSeparator ) : string | ||
strPath | string | |
chSeparator | char | |
Результат | string |
public static EnsureTerminatingSeparator ( string strPath, bool bUrl ) : string | ||
strPath | string | Input path. |
bUrl | bool | If |
Результат | string |
public static FileUrlToPath ( string strUrl ) : string | ||
strUrl | string | |
Результат | string |
public static FilterFileName ( string strName ) : string | ||
strName | string | |
Результат | string |
public static GetExtension ( string strPath ) : string | ||
strPath | string | Full path of a file with extension. |
Результат | string |
public static GetFileDirectory ( string strFile, bool bAppendTerminatingChar, bool bEnsureValidDirSpec ) : string | ||
strFile | string | Full path of a file. |
bAppendTerminatingChar | bool | Append a terminating directory separator /// character to the returned path. |
bEnsureValidDirSpec | bool | If |
Результат | string |
public static GetFileInfos ( |
||
di | ||
strPattern | string | |
opt | SearchOption | |
Результат | List |
public static GetFileName ( string strPath ) : string | ||
strPath | string | Full path of a file. |
Результат | string |
public static GetFilePaths ( string strDir, string strPattern, SearchOption opt ) : List |
||
strDir | string | |
strPattern | string | |
opt | SearchOption | |
Результат | List |
public static GetHost ( string strUrl ) : string | ||
strUrl | string | |
Результат | string |
public static GetQuotedAppPath ( string strPath ) : string | ||
strPath | string | |
Результат | string |
public static GetShortestAbsolutePath ( string strPath ) : string | ||
strPath | string | |
Результат | string |
public static GetUrlLength ( string strText, int nOffset ) : int | ||
strText | string | |
nOffset | int | |
Результат | int |
public static HideFile ( string strFile, bool bHide ) : bool | ||
strFile | string | |
bHide | bool | |
Результат | bool |
public static IsAbsolutePath ( string strPath ) : bool | ||
strPath | string | |
Результат | bool |
public static IsUncPath ( string strPath ) : bool | ||
strPath | string | |
Результат | bool |
public static MakeAbsolutePath ( string strBaseFile, string strTargetFile ) : string | ||
strBaseFile | string | |
strTargetFile | string | |
Результат | string |
public static MakeRelativePath ( string strBaseFile, string strTargetFile ) : string | ||
strBaseFile | string | |
strTargetFile | string | |
Результат | string |
public static RemoveScheme ( string strUrl ) : string | ||
strUrl | string | |
Результат | string |
public static StripExtension ( string strPath ) : string | ||
strPath | string | Full path of a file with extension. |
Результат | string |
public static UnhideFile ( string strFile ) : bool | ||
strFile | string | |
Результат | bool |