Path
Overview
Filesystem related utilities.
Location
- Reference:
- Elements.dll .NET, .NET Core 6.0, .NET Standard 2.0
- elements.jar Cooper
- Elements.fx Island, ToffeeV2
- libElements.fx Toffee
- Namespace: RemObjects.Elements.RTL
Change the extension of this file to something else. Pass an empty string to remove the extension.
class method ChangeExtension(aFileName: not nullable String; aNewExtension: nullable String): not nullable Stringstatic String! ChangeExtension(String! aFileName, String? aNewExtension)// Toffee
static func ChangeExtension( aFileName: String, aNewExtension: String) -> String
// ToffeeV2
static func ChangeExtension( aFileName: String, aNewExtension: String?) -> Stringstatic String ChangeExtension(String aFileName, String aNewExtension)Shared Function ChangeExtension(aFileName As String, aNewExtension As String?) As StringParameters:
- aFileName:
- aNewExtension:
Append multiple paths together, using the directory seperator to bind them.
class method Combine(aBasePath: nullable String; params aPaths: array of String): nullable Stringstatic String? Combine(String? aBasePath, params String[] aPaths)// Toffee
static func Combine( aBasePath: String, aPaths: String...) -> String
// ToffeeV2
static func Combine( aBasePath: String?, aPaths: String...) -> String?static String Combine(String aBasePath, String[]... aPaths)Shared Function Combine(aBasePath As String?, ParamArray aPaths As String()) As String?Parameters:
- aBasePath:
- aPaths:
Append multiple paths together, using the unix directory seperator to bind them.
class method CombineUnixPath(aBasePath: not nullable String; params aPaths: array of String): not nullable Stringstatic String! CombineUnixPath(String! aBasePath, params String[] aPaths)static func CombineUnixPath( aBasePath: String, aPaths: String...) -> Stringstatic String CombineUnixPath(String aBasePath, String[]... aPaths)Shared Function CombineUnixPath(aBasePath As String, ParamArray aPaths As String()) As StringParameters:
- aBasePath:
- aPaths:
Append multiple paths together, using the windows directory seperator to bind them.
class method CombineWindowsPath(aBasePath: not nullable String; params aPaths: array of String): not nullable Stringstatic String! CombineWindowsPath(String! aBasePath, params String[] aPaths)static func CombineWindowsPath( aBasePath: String, aPaths: String...) -> Stringstatic String CombineWindowsPath(String aBasePath, String[]... aPaths)Shared Function CombineWindowsPath(aBasePath As String, ParamArray aPaths As String()) As StringParameters:
- aBasePath:
- aPaths:
Returns the system directory seperator character.
class property DirectorySeparatorChar: Char read;class Char DirectorySeparatorChar { get; }static var DirectorySeparatorChar: Char { get{} }class Char DirectorySeparatorChar { __get; }Shared ReadOnly Property DirectorySeparatorChar() As CharExpand a ~/ path to the users real home directory. Does nothing with the string if does not start with ~
class method ExpandTildeInPath(aPath: not nullable String): not nullable Stringstatic String! ExpandTildeInPath(String! aPath)static func ExpandTildeInPath(_ aPath: String) -> StringShared Function ExpandTildeInPath(aPath As String) As StringParameters:
- aPath:
class method FirstFileThatExists(params aFiles: nullable IEnumerable<String>): nullable Stringstatic String? FirstFileThatExists(params IEnumerable<String>? aFiles)// Toffee
static func FirstFileThatExists( aFiles: String...) -> String
// ToffeeV2
static func FirstFileThatExists( aFiles: IEnumerable<String>?...) -> String?static String FirstFileThatExists(Iterable<String>... aFiles)Shared Function FirstFileThatExists(ParamArray aFiles As IEnumerable<String>?) As String?Parameters:
- aFiles:
class method FirstFolderThatExists(params aFolders: nullable IEnumerable<String>): nullable Stringstatic String? FirstFolderThatExists(params IEnumerable<String>? aFolders)// Toffee
static func FirstFolderThatExists( aFolders: String...) -> String
// ToffeeV2
static func FirstFolderThatExists( aFolders: IEnumerable<String>?...) -> String?static String FirstFolderThatExists(Iterable<String>... aFolders)Shared Function FirstFolderThatExists(ParamArray aFolders As IEnumerable<String>?) As String?Parameters:
- aFolders:
class method FirstMatchingSubfolder(aFolder: String; aSubFolderOptions: not nullable IEnumerable<String>): nullable Stringstatic String? FirstMatchingSubfolder(String aFolder, IEnumerable<String>! aSubFolderOptions)// Toffee
static func FirstMatchingSubfolder( aFolder: String, aSubFolderOptions: INSFastEnumeration<String>) -> String
// ToffeeV2
static func FirstMatchingSubfolder( aFolder: String, aSubFolderOptions: IEnumerable<String>) -> String?static String FirstMatchingSubfolder(String aFolder, Iterable<String> aSubFolderOptions)Shared Function FirstMatchingSubfolder(aFolder As String, aSubFolderOptions As IEnumerable<String>) As String?Parameters:
- aFolder:
- aSubFolderOptions:
class method FirstMatchingSubfolder(aFolder: String; aSubFolderOptions: not nullable IEnumerable<String>; aBuildPath: Func<String, String, String>): nullable Stringstatic String? FirstMatchingSubfolder(String aFolder, IEnumerable<String>! aSubFolderOptions, Func<String, String, String> aBuildPath)// Toffee
static func FirstMatchingSubfolder( aFolder: String, aSubFolderOptions: INSFastEnumeration<String>, aBuildPath: (String, String) -> String) -> String
// ToffeeV2
static func FirstMatchingSubfolder( aFolder: String, aSubFolderOptions: IEnumerable<String>, aBuildPath: (String, String) -> String) -> String?static String FirstMatchingSubfolder(String aFolder, Iterable<String> aSubFolderOptions, Func3<String, String, String> aBuildPath)// .NET, .NET Core 6.0, .NET Standard 2.0
Shared Function FirstMatchingSubfolder(aFolder As String, aSubFolderOptions As IEnumerable<String>, aBuildPath As Func (Of String, String, String)) As String?
// Island-Android, Island-iOS Simulator, Island-iOS-arm64, Island-Mac Catalyst, Island-macOS, Island-tvOS Simulator, Island-tvOS-arm64, Island-Ubuntu, Island-visionOS Simulator, Island-visionOS-arm64, Island-watchOS Simulator, Island-watchOS-arm64_32, Island-Windows
Shared Function FirstMatchingSubfolder(aFolder As String, aSubFolderOptions As IEnumerable<String>, aBuildPath As Func<String, String, String>) As String?Parameters:
- aFolder:
- aSubFolderOptions:
- aBuildPath:
class method FirstPathThatExists(params aPaths: nullable IEnumerable<String>): nullable Stringstatic String? FirstPathThatExists(params IEnumerable<String>? aPaths)// Toffee
static func FirstPathThatExists( aPaths: String...) -> String
// ToffeeV2
static func FirstPathThatExists( aPaths: IEnumerable<String>?...) -> String?static String FirstPathThatExists(Iterable<String>... aPaths)Shared Function FirstPathThatExists(ParamArray aPaths As IEnumerable<String>?) As String?Parameters:
- aPaths:
class method ForceTrailingDirectorySeparator(aPath: not nullable String): not nullable Stringstatic String! ForceTrailingDirectorySeparator(String! aPath)static func ForceTrailingDirectorySeparator(_ aPath: String) -> Stringstatic String ForceTrailingDirectorySeparator(String aPath)Shared Function ForceTrailingDirectorySeparator(aPath As String) As StringParameters:
- aPath:
Returns the extension, including the .
class method GetExtension(aFileName: not nullable String): not nullable Stringstatic String! GetExtension(String! aFileName)static func GetExtension(_ aFileName: String) -> Stringstatic String GetExtension(String aFileName)Shared Function GetExtension(aFileName As String) As StringParameters:
- aFileName:
Returns the filename of a file, without the directory.
class method GetFileName(aFileName: not nullable String): not nullable Stringstatic String! GetFileName(String! aFileName)static func GetFileName(_ aFileName: String) -> Stringstatic String GetFileName(String aFileName)Shared Function GetFileName(aFileName As String) As StringParameters:
- aFileName:
Returns the filename of a file, without the directory or extension.
class method GetFileNameWithoutExtension(aFileName: not nullable String): not nullable Stringstatic String! GetFileNameWithoutExtension(String! aFileName)static func GetFileNameWithoutExtension(_ aFileName: String) -> Stringstatic String GetFileNameWithoutExtension(String aFileName)Shared Function GetFileNameWithoutExtension(aFileName As String) As StringParameters:
- aFileName:
Returns the full path name, expanding any relative or .. / . paths.
class method GetFullPath(RelativePath: not nullable String): not nullable Stringstatic String! GetFullPath(String! RelativePath)static func GetFullPath(_ RelativePath: String) -> Stringstatic String GetFullPath(String RelativePath)Shared Function GetFullPath(RelativePath As String) As StringParameters:
- RelativePath:
Returns the network path used in a path; returns nothing if it's not a network path.
class method GetNetworkServerName(aFileName: not nullable String): nullable Stringstatic String? GetNetworkServerName(String! aFileName)// Toffee
static func GetNetworkServerName( aFileName: String) -> String
// ToffeeV2
static func GetNetworkServerName( aFileName: String) -> String?static String GetNetworkServerName(String aFileName)Shared Function GetNetworkServerName(aFileName As String) As String?Parameters:
- aFileName:
class method GetParentDirectory(aFileName: not nullable String) FolderSeparator(aFolderSeparator: Char): nullable Stringstatic String? GetParentDirectory(String! aFileName) FolderSeparator(Char aFolderSeparator)// Toffee
static func GetParentDirectory( aFileName: String, FolderSeparator aFolderSeparator: Char) -> String
// ToffeeV2
static func GetParentDirectory( aFileName: String, FolderSeparator aFolderSeparator: Char) -> String?static String GetParentDirectory(String aFileName) FolderSeparator(Char aFolderSeparator)Shared Function GetParentDirectory(aFileName As String) FolderSeparator(aFolderSeparator As Char) As String?Parameters:
- aFileName:
- aFolderSeparator:
Returns the parent directory for a file or directory.
class method GetParentDirectory(aFileName: not nullable String): nullable Stringstatic String? GetParentDirectory(String! aFileName)// Toffee
static func GetParentDirectory( aFileName: String) -> String
// ToffeeV2
static func GetParentDirectory( aFileName: String) -> String?static String GetParentDirectory(String aFileName)Shared Function GetParentDirectory(aFileName As String) As String?Parameters:
- aFileName:
Resolves a path, relative to another path.
class method GetPath(aFullPath: not nullable String) RelativeToPath(aBasePath: not nullable String): nullable Stringstatic String? GetPath(String! aFullPath) RelativeToPath(String! aBasePath)// Toffee
static func GetPath( aFullPath: String, RelativeToPath aBasePath: String) -> String
// ToffeeV2
static func GetPath( aFullPath: String, RelativeToPath aBasePath: String) -> String?static String GetPath(String aFullPath) RelativeToPath(String aBasePath)Shared Function GetPath(aFullPath As String) RelativeToPath(aBasePath As String) As String?Parameters:
- aFullPath:
- aBasePath:
Returns a filename using the unix file seperator.
class method GetPathWithoutExtension(aFileName: not nullable String): not nullable Stringstatic String! GetPathWithoutExtension(String! aFileName)static func GetPathWithoutExtension(_ aFileName: String) -> Stringstatic String GetPathWithoutExtension(String aFileName)Shared Function GetPathWithoutExtension(aFileName As String) As StringParameters:
- aFileName:
Returns a file as unix filename.
class method GetUnixFileName(aFileName: not nullable String): not nullable Stringstatic String! GetUnixFileName(String! aFileName)static func GetUnixFileName(_ aFileName: String) -> Stringstatic String GetUnixFileName(String aFileName)Shared Function GetUnixFileName(aFileName As String) As StringParameters:
- aFileName:
Returns a file as unix filename without extension.
class method GetUnixFileNameWithoutExtension(aFileName: not nullable String): not nullable Stringstatic String! GetUnixFileNameWithoutExtension(String! aFileName)static func GetUnixFileNameWithoutExtension(_ aFileName: String) -> Stringstatic String GetUnixFileNameWithoutExtension(String aFileName)Shared Function GetUnixFileNameWithoutExtension(aFileName As String) As StringParameters:
- aFileName:
Returns the parent directory of a unix plath.
class method GetUnixParentDirectory(aFileName: not nullable String): nullable Stringstatic String? GetUnixParentDirectory(String! aFileName)// Toffee
static func GetUnixParentDirectory( aFileName: String) -> String
// ToffeeV2
static func GetUnixParentDirectory( aFileName: String) -> String?static String GetUnixParentDirectory(String aFileName)Shared Function GetUnixParentDirectory(aFileName As String) As String?Parameters:
- aFileName:
Returns a filename using the windows file seperator.
class method GetWindowsFileName(aFileName: not nullable String): not nullable Stringstatic String! GetWindowsFileName(String! aFileName)static func GetWindowsFileName(_ aFileName: String) -> Stringstatic String GetWindowsFileName(String aFileName)Shared Function GetWindowsFileName(aFileName As String) As StringParameters:
- aFileName:
Returns a file as Windows filename without extension.
class method GetWindowsFileNameWithoutExtension(aFileName: not nullable String): not nullable Stringstatic String! GetWindowsFileNameWithoutExtension(String! aFileName)static func GetWindowsFileNameWithoutExtension(_ aFileName: String) -> Stringstatic String GetWindowsFileNameWithoutExtension(String aFileName)Shared Function GetWindowsFileNameWithoutExtension(aFileName As String) As StringParameters:
- aFileName:
Returns the parent directory of a windows path.
class method GetWindowsParentDirectory(aFileName: not nullable String): nullable Stringstatic String? GetWindowsParentDirectory(String! aFileName)// Toffee
static func GetWindowsParentDirectory( aFileName: String) -> String
// ToffeeV2
static func GetWindowsParentDirectory( aFileName: String) -> String?static String GetWindowsParentDirectory(String aFileName)Shared Function GetWindowsParentDirectory(aFileName As String) As String?Parameters:
- aFileName:
Separator characters for summing up multiple paths; generally ; or :.
class property PathListSeparatorChar: Char read;class Char PathListSeparatorChar { get; }static var PathListSeparatorChar: Char { get{} }class Char PathListSeparatorChar { __get; }Shared ReadOnly Property PathListSeparatorChar() As Charclass method TrimTrailingDirectorySeparator(aPath: not nullable String): not nullable Stringstatic String! TrimTrailingDirectorySeparator(String! aPath)static func TrimTrailingDirectorySeparator(_ aPath: String) -> Stringstatic String TrimTrailingDirectorySeparator(String aPath)Shared Function TrimTrailingDirectorySeparator(aPath As String) As StringParameters:
- aPath:
Returns the system directory seperator character.
class property DirectorySeparatorChar: Char read;class Char DirectorySeparatorChar { get; }static var DirectorySeparatorChar: Char { get{} }class Char DirectorySeparatorChar { __get; }Shared ReadOnly Property DirectorySeparatorChar() As CharSeparator characters for summing up multiple paths; generally ; or :.
class property PathListSeparatorChar: Char read;class Char PathListSeparatorChar { get; }static var PathListSeparatorChar: Char { get{} }class Char PathListSeparatorChar { __get; }Shared ReadOnly Property PathListSeparatorChar() As Char
Change the extension of this file to something else. Pass an empty string to remove the extension.
class method ChangeExtension(aFileName: not nullable String; aNewExtension: nullable String): not nullable Stringstatic String! ChangeExtension(String! aFileName, String? aNewExtension)// Toffee
static func ChangeExtension( aFileName: String, aNewExtension: String) -> String
// ToffeeV2
static func ChangeExtension( aFileName: String, aNewExtension: String?) -> Stringstatic String ChangeExtension(String aFileName, String aNewExtension)Shared Function ChangeExtension(aFileName As String, aNewExtension As String?) As StringParameters:
- aFileName:
- aNewExtension:
Append multiple paths together, using the directory seperator to bind them.
class method Combine(aBasePath: nullable String; params aPaths: array of String): nullable Stringstatic String? Combine(String? aBasePath, params String[] aPaths)// Toffee
static func Combine( aBasePath: String, aPaths: String...) -> String
// ToffeeV2
static func Combine( aBasePath: String?, aPaths: String...) -> String?static String Combine(String aBasePath, String[]... aPaths)Shared Function Combine(aBasePath As String?, ParamArray aPaths As String()) As String?Parameters:
- aBasePath:
- aPaths:
Append multiple paths together, using the unix directory seperator to bind them.
class method CombineUnixPath(aBasePath: not nullable String; params aPaths: array of String): not nullable Stringstatic String! CombineUnixPath(String! aBasePath, params String[] aPaths)static func CombineUnixPath( aBasePath: String, aPaths: String...) -> Stringstatic String CombineUnixPath(String aBasePath, String[]... aPaths)Shared Function CombineUnixPath(aBasePath As String, ParamArray aPaths As String()) As StringParameters:
- aBasePath:
- aPaths:
Append multiple paths together, using the windows directory seperator to bind them.
class method CombineWindowsPath(aBasePath: not nullable String; params aPaths: array of String): not nullable Stringstatic String! CombineWindowsPath(String! aBasePath, params String[] aPaths)static func CombineWindowsPath( aBasePath: String, aPaths: String...) -> Stringstatic String CombineWindowsPath(String aBasePath, String[]... aPaths)Shared Function CombineWindowsPath(aBasePath As String, ParamArray aPaths As String()) As StringParameters:
- aBasePath:
- aPaths:
Expand a ~/ path to the users real home directory. Does nothing with the string if does not start with ~
class method ExpandTildeInPath(aPath: not nullable String): not nullable Stringstatic String! ExpandTildeInPath(String! aPath)static func ExpandTildeInPath(_ aPath: String) -> StringShared Function ExpandTildeInPath(aPath As String) As StringParameters:
- aPath:
class method FirstFileThatExists(params aFiles: nullable IEnumerable<String>): nullable Stringstatic String? FirstFileThatExists(params IEnumerable<String>? aFiles)// Toffee
static func FirstFileThatExists( aFiles: String...) -> String
// ToffeeV2
static func FirstFileThatExists( aFiles: IEnumerable<String>?...) -> String?static String FirstFileThatExists(Iterable<String>... aFiles)Shared Function FirstFileThatExists(ParamArray aFiles As IEnumerable<String>?) As String?Parameters:
- aFiles:
class method FirstFolderThatExists(params aFolders: nullable IEnumerable<String>): nullable Stringstatic String? FirstFolderThatExists(params IEnumerable<String>? aFolders)// Toffee
static func FirstFolderThatExists( aFolders: String...) -> String
// ToffeeV2
static func FirstFolderThatExists( aFolders: IEnumerable<String>?...) -> String?static String FirstFolderThatExists(Iterable<String>... aFolders)Shared Function FirstFolderThatExists(ParamArray aFolders As IEnumerable<String>?) As String?Parameters:
- aFolders:
class method FirstMatchingSubfolder(aFolder: String; aSubFolderOptions: not nullable IEnumerable<String>): nullable Stringstatic String? FirstMatchingSubfolder(String aFolder, IEnumerable<String>! aSubFolderOptions)// Toffee
static func FirstMatchingSubfolder( aFolder: String, aSubFolderOptions: INSFastEnumeration<String>) -> String
// ToffeeV2
static func FirstMatchingSubfolder( aFolder: String, aSubFolderOptions: IEnumerable<String>) -> String?static String FirstMatchingSubfolder(String aFolder, Iterable<String> aSubFolderOptions)Shared Function FirstMatchingSubfolder(aFolder As String, aSubFolderOptions As IEnumerable<String>) As String?Parameters:
- aFolder:
- aSubFolderOptions:
class method FirstMatchingSubfolder(aFolder: String; aSubFolderOptions: not nullable IEnumerable<String>; aBuildPath: Func<String, String, String>): nullable Stringstatic String? FirstMatchingSubfolder(String aFolder, IEnumerable<String>! aSubFolderOptions, Func<String, String, String> aBuildPath)// Toffee
static func FirstMatchingSubfolder( aFolder: String, aSubFolderOptions: INSFastEnumeration<String>, aBuildPath: (String, String) -> String) -> String
// ToffeeV2
static func FirstMatchingSubfolder( aFolder: String, aSubFolderOptions: IEnumerable<String>, aBuildPath: (String, String) -> String) -> String?static String FirstMatchingSubfolder(String aFolder, Iterable<String> aSubFolderOptions, Func3<String, String, String> aBuildPath)// .NET, .NET Core 6.0, .NET Standard 2.0
Shared Function FirstMatchingSubfolder(aFolder As String, aSubFolderOptions As IEnumerable<String>, aBuildPath As Func (Of String, String, String)) As String?
// Island-Android, Island-iOS Simulator, Island-iOS-arm64, Island-Mac Catalyst, Island-macOS, Island-tvOS Simulator, Island-tvOS-arm64, Island-Ubuntu, Island-visionOS Simulator, Island-visionOS-arm64, Island-watchOS Simulator, Island-watchOS-arm64_32, Island-Windows
Shared Function FirstMatchingSubfolder(aFolder As String, aSubFolderOptions As IEnumerable<String>, aBuildPath As Func<String, String, String>) As String?Parameters:
- aFolder:
- aSubFolderOptions:
- aBuildPath:
class method FirstPathThatExists(params aPaths: nullable IEnumerable<String>): nullable Stringstatic String? FirstPathThatExists(params IEnumerable<String>? aPaths)// Toffee
static func FirstPathThatExists( aPaths: String...) -> String
// ToffeeV2
static func FirstPathThatExists( aPaths: IEnumerable<String>?...) -> String?static String FirstPathThatExists(Iterable<String>... aPaths)Shared Function FirstPathThatExists(ParamArray aPaths As IEnumerable<String>?) As String?Parameters:
- aPaths:
class method ForceTrailingDirectorySeparator(aPath: not nullable String): not nullable Stringstatic String! ForceTrailingDirectorySeparator(String! aPath)static func ForceTrailingDirectorySeparator(_ aPath: String) -> Stringstatic String ForceTrailingDirectorySeparator(String aPath)Shared Function ForceTrailingDirectorySeparator(aPath As String) As StringParameters:
- aPath:
Returns the extension, including the .
class method GetExtension(aFileName: not nullable String): not nullable Stringstatic String! GetExtension(String! aFileName)static func GetExtension(_ aFileName: String) -> Stringstatic String GetExtension(String aFileName)Shared Function GetExtension(aFileName As String) As StringParameters:
- aFileName:
Returns the filename of a file, without the directory.
class method GetFileName(aFileName: not nullable String): not nullable Stringstatic String! GetFileName(String! aFileName)static func GetFileName(_ aFileName: String) -> Stringstatic String GetFileName(String aFileName)Shared Function GetFileName(aFileName As String) As StringParameters:
- aFileName:
Returns the filename of a file, without the directory or extension.
class method GetFileNameWithoutExtension(aFileName: not nullable String): not nullable Stringstatic String! GetFileNameWithoutExtension(String! aFileName)static func GetFileNameWithoutExtension(_ aFileName: String) -> Stringstatic String GetFileNameWithoutExtension(String aFileName)Shared Function GetFileNameWithoutExtension(aFileName As String) As StringParameters:
- aFileName:
Returns the full path name, expanding any relative or .. / . paths.
class method GetFullPath(RelativePath: not nullable String): not nullable Stringstatic String! GetFullPath(String! RelativePath)static func GetFullPath(_ RelativePath: String) -> Stringstatic String GetFullPath(String RelativePath)Shared Function GetFullPath(RelativePath As String) As StringParameters:
- RelativePath:
Returns the network path used in a path; returns nothing if it's not a network path.
class method GetNetworkServerName(aFileName: not nullable String): nullable Stringstatic String? GetNetworkServerName(String! aFileName)// Toffee
static func GetNetworkServerName( aFileName: String) -> String
// ToffeeV2
static func GetNetworkServerName( aFileName: String) -> String?static String GetNetworkServerName(String aFileName)Shared Function GetNetworkServerName(aFileName As String) As String?Parameters:
- aFileName:
class method GetParentDirectory(aFileName: not nullable String) FolderSeparator(aFolderSeparator: Char): nullable Stringstatic String? GetParentDirectory(String! aFileName) FolderSeparator(Char aFolderSeparator)// Toffee
static func GetParentDirectory( aFileName: String, FolderSeparator aFolderSeparator: Char) -> String
// ToffeeV2
static func GetParentDirectory( aFileName: String, FolderSeparator aFolderSeparator: Char) -> String?static String GetParentDirectory(String aFileName) FolderSeparator(Char aFolderSeparator)Shared Function GetParentDirectory(aFileName As String) FolderSeparator(aFolderSeparator As Char) As String?Parameters:
- aFileName:
- aFolderSeparator:
Returns the parent directory for a file or directory.
class method GetParentDirectory(aFileName: not nullable String): nullable Stringstatic String? GetParentDirectory(String! aFileName)// Toffee
static func GetParentDirectory( aFileName: String) -> String
// ToffeeV2
static func GetParentDirectory( aFileName: String) -> String?static String GetParentDirectory(String aFileName)Shared Function GetParentDirectory(aFileName As String) As String?Parameters:
- aFileName:
Resolves a path, relative to another path.
class method GetPath(aFullPath: not nullable String) RelativeToPath(aBasePath: not nullable String): nullable Stringstatic String? GetPath(String! aFullPath) RelativeToPath(String! aBasePath)// Toffee
static func GetPath( aFullPath: String, RelativeToPath aBasePath: String) -> String
// ToffeeV2
static func GetPath( aFullPath: String, RelativeToPath aBasePath: String) -> String?static String GetPath(String aFullPath) RelativeToPath(String aBasePath)Shared Function GetPath(aFullPath As String) RelativeToPath(aBasePath As String) As String?Parameters:
- aFullPath:
- aBasePath:
Returns a filename using the unix file seperator.
class method GetPathWithoutExtension(aFileName: not nullable String): not nullable Stringstatic String! GetPathWithoutExtension(String! aFileName)static func GetPathWithoutExtension(_ aFileName: String) -> Stringstatic String GetPathWithoutExtension(String aFileName)Shared Function GetPathWithoutExtension(aFileName As String) As StringParameters:
- aFileName:
Returns a file as unix filename.
class method GetUnixFileName(aFileName: not nullable String): not nullable Stringstatic String! GetUnixFileName(String! aFileName)static func GetUnixFileName(_ aFileName: String) -> Stringstatic String GetUnixFileName(String aFileName)Shared Function GetUnixFileName(aFileName As String) As StringParameters:
- aFileName:
Returns a file as unix filename without extension.
class method GetUnixFileNameWithoutExtension(aFileName: not nullable String): not nullable Stringstatic String! GetUnixFileNameWithoutExtension(String! aFileName)static func GetUnixFileNameWithoutExtension(_ aFileName: String) -> Stringstatic String GetUnixFileNameWithoutExtension(String aFileName)Shared Function GetUnixFileNameWithoutExtension(aFileName As String) As StringParameters:
- aFileName:
Returns the parent directory of a unix plath.
class method GetUnixParentDirectory(aFileName: not nullable String): nullable Stringstatic String? GetUnixParentDirectory(String! aFileName)// Toffee
static func GetUnixParentDirectory( aFileName: String) -> String
// ToffeeV2
static func GetUnixParentDirectory( aFileName: String) -> String?static String GetUnixParentDirectory(String aFileName)Shared Function GetUnixParentDirectory(aFileName As String) As String?Parameters:
- aFileName:
Returns a filename using the windows file seperator.
class method GetWindowsFileName(aFileName: not nullable String): not nullable Stringstatic String! GetWindowsFileName(String! aFileName)static func GetWindowsFileName(_ aFileName: String) -> Stringstatic String GetWindowsFileName(String aFileName)Shared Function GetWindowsFileName(aFileName As String) As StringParameters:
- aFileName:
Returns a file as Windows filename without extension.
class method GetWindowsFileNameWithoutExtension(aFileName: not nullable String): not nullable Stringstatic String! GetWindowsFileNameWithoutExtension(String! aFileName)static func GetWindowsFileNameWithoutExtension(_ aFileName: String) -> Stringstatic String GetWindowsFileNameWithoutExtension(String aFileName)Shared Function GetWindowsFileNameWithoutExtension(aFileName As String) As StringParameters:
- aFileName:
Returns the parent directory of a windows path.
class method GetWindowsParentDirectory(aFileName: not nullable String): nullable Stringstatic String? GetWindowsParentDirectory(String! aFileName)// Toffee
static func GetWindowsParentDirectory( aFileName: String) -> String
// ToffeeV2
static func GetWindowsParentDirectory( aFileName: String) -> String?static String GetWindowsParentDirectory(String aFileName)Shared Function GetWindowsParentDirectory(aFileName As String) As String?Parameters:
- aFileName:
class method TrimTrailingDirectorySeparator(aPath: not nullable String): not nullable Stringstatic String! TrimTrailingDirectorySeparator(String! aPath)static func TrimTrailingDirectorySeparator(_ aPath: String) -> Stringstatic String TrimTrailingDirectorySeparator(String aPath)Shared Function TrimTrailingDirectorySeparator(aPath As String) As StringParameters:
- aPath: