|
Change the extension of the file.
-
extension
:
string
-
The new extension containing the leading '.'.
-
fileName
:
string
-
Name of the file from which the extension is retrieved.
-
Returns:
string
|
|
Combines two path strings using Path.Combine
-
path1
:
string
-
The first path to combine
-
path2
:
string
-
The second path to combine
-
Returns:
string
|
|
Combines two path strings using Path.Combine. Trims leading slashes of path2.
This makes combineTrimEnd "/test" "/sub" return /test/sub
-
path1
:
string
-
The first path to combine
-
path2
:
string
-
The second path to combine
-
Returns:
string
|
|
Convert the given windows path to a path in the current system
-
windowsPath
:
string
-
The path to operate on
-
Returns:
string
|
|
The directory separator string. On most systems / or \
-
Returns:
string
|
|
Get the directory of the specified path
-
path
:
string
-
The path from which the directory is retrieved.
-
Returns:
string
|
|
Gets the absolute path for the given path
-
p
:
string
-
The path to get its absolute path
-
Returns:
string
|
|
Tests whether the file has specified extensions (containing the leading '.')
-
extension
:
string
-
The extension to fine containing the leading '.'.
-
fileName
:
string
-
Name of the file from which the extension is retrieved.
-
Returns:
bool
|
|
Detects whether the given path is a directory.
-
path
:
string
-
The path to check
-
Returns:
bool
|
|
Detects whether the given path is a file.
-
path
:
string
-
The path to check
-
Returns:
bool
|
|
Detects whether the given path does not contains invalid characters.
-
path
:
string
-
Returns:
bool
|
|
Normalizes a filename.
-
fileName
:
string
-
The file name to normalize
-
Returns:
string
|
|
Replaces any occurence of the currentDirectory with "."
-
path
:
string
-
The path to operate on
-
Returns:
string
|
|
Replaces the absolute path with a relative path
-
Returns:
string -> string -> string
|
|
Replaces the absolute path with a relative path
-
path
:
string
-
The path to operate on
-
Returns:
string
|