◆ AppendExtension()
Appends an extension to the path.
- Parameters
-
| path | Path to append the extension to |
| extension | The extension to append |
- Returns
- Path with the extension appended
◆ Concat()
Concatenates two strings two parts of path together.
- Parameters
-
| firstPart | First part of path to concantenate |
| secondPart | Second part of path to concantenate |
- Returns
- A path given by concatenating firstPart and secondPart
◆ FileSystemNameFromFileName()
| static proto string FilePath.FileSystemNameFromFileName |
( |
string | path | ) |
|
|
static |
Gets FileSystemName part of given path.
For example, $mypath:File would return mypath.
- Parameters
-
- Returns
- Resulting File system name
◆ IsAbsolutePath()
| static proto bool FilePath.IsAbsolutePath |
( |
string | path | ) |
|
|
static |
Checks whether a path is absolute or not.
- Parameters
-
- Returns
- true if path is absolute, false otherwise
◆ IsDelimiter()
| static proto bool FilePath.IsDelimiter |
( |
string | c | ) |
|
|
static |
Checks if given char is valid path delimiter.
- Parameters
-
| c | Single char string to check |
- Returns
- true if c is path delimiter, false otherwise
◆ IsSystemDelimiter()
| static proto bool FilePath.IsSystemDelimiter |
( |
string | c | ) |
|
|
static |
Checks if given char is valid system path delimiter.
- Parameters
-
| c | Single char string to check |
- Returns
- true if c is system path delimiter, false otherwise
◆ MatchesPattern()
Checks wheter a path matches a pattern.
- Parameters
-
| path | Path to be tested |
| pattern | Standard wildcards are supported (?,*) |
- Returns
- true if the path matches the pattern, false otherwise
◆ ReplaceExtension()
Replaces an extension in given path.
- Parameters
-
| path | Path to replace the extension in |
| extension | New extension to place to path |
- Returns
- Path with the extension replaced
◆ StripExtension()
Removes extension from given path.
- Parameters
-
| path | Path to remove extension from |
| [out] | ext | Extension which was removed |
- Returns
- path without an extension
◆ StripFileName()
Removes filename from given path.
- Parameters
-
| path | Path to remove the file name from |
- Returns
- Path without a file name
◆ StripPath()
Extracts a file name from given path.
- Parameters
-
| path | Path to extract the file name from |
- Returns
- File name extracted from given path
◆ ToInternalFormat()
| static proto string FilePath.ToInternalFormat |
( |
string | path | ) |
|
|
static |
Converts path to internal compatible format.
- Parameters
-
- Returns
- Converted path
◆ ToSystemDelimiter()
Converts given delimiter to system delimiter.
- Parameters
-
| c | Single char string to convert |
- Returns
- System delimiter if IsDelimiter(c), c otherwise
◆ ToSystemFormat()
Converts given path to system compatible format.
- Parameters
-
- Returns
- Converted path
The documentation for this interface was generated from the following file:
- Core/generated/System/FilePath.c