Path
Overview
Helper class that performs operations on a file or directory path information.
Use case
You can use this class when you need to manipulate path information of file or folder, for example:
var FileName := "1.txt";
writeLn(System.IO.Path.GetExtension(FileName));
FileName := System.IO.Path.ChangeExtension("1.txt", "jpg");
writeLn(FileName);
writeLn(System.IO.Path.GetExtension(FileName));
Output:
.txt
1.jpg
.jpg
Location
class method ChangeExtension(FileName: not nullable String; NewExtension: String): not nullable String
Parameters:
class method Combine(BasePath: not nullable String; Path: not nullable String): not nullable String
Parameters:
class method Combine(BasePath: not nullable String; Path1: not nullable String; Path2: not nullable String): not nullable String
Parameters:
class property DirectorySeparatorChar: Char read;
class Char DirectorySeparatorChar { get; }
static var DirectorySeparatorChar: Char { get{} }
class Char DirectorySeparatorChar { __get; }
Shared ReadOnly Property DirectorySeparatorChar() As Char
class method GetExtension(FileName: not nullable String): not nullable String
Parameters:
class method GetFileName(FileName: not nullable String): not nullable String
Parameters:
GetFileNameWithoutExtension
class method GetFileNameWithoutExtension(FileName: not nullable String): not nullable String
static String! GetFileNameWithoutExtension(String! FileName)
static func GetFileNameWithoutExtension(_ FileName: String) -> String
Shared Function GetFileNameWithoutExtension(FileName As String) As String
Parameters:
class method GetFullPath(RelativePath: not nullable String): not nullable String
Shared Function GetFullPath(RelativePath As String) As String
Parameters:
class method GetParentDirectory(FileName: not nullable String): String
static func GetParentDirectory(_ FileName: String) -> String
Shared Function GetParentDirectory(FileName As String) As String
Parameters:
class property DirectorySeparatorChar: Char read;
class Char DirectorySeparatorChar { get; }
static var DirectorySeparatorChar: Char { get{} }
class Char DirectorySeparatorChar { __get; }
Shared ReadOnly Property DirectorySeparatorChar() As Char
class method ChangeExtension(FileName: not nullable String; NewExtension: String): not nullable String
Parameters:
class method Combine(BasePath: not nullable String; Path: not nullable String): not nullable String
Parameters:
class method Combine(BasePath: not nullable String; Path1: not nullable String; Path2: not nullable String): not nullable String
Parameters:
class method GetExtension(FileName: not nullable String): not nullable String
Parameters:
class method GetFileName(FileName: not nullable String): not nullable String
Parameters:
GetFileNameWithoutExtension
class method GetFileNameWithoutExtension(FileName: not nullable String): not nullable String
static String! GetFileNameWithoutExtension(String! FileName)
static func GetFileNameWithoutExtension(_ FileName: String) -> String
Shared Function GetFileNameWithoutExtension(FileName As String) As String
Parameters:
class method GetFullPath(RelativePath: not nullable String): not nullable String
Shared Function GetFullPath(RelativePath As String) As String
Parameters:
class method GetParentDirectory(FileName: not nullable String): String
static func GetParentDirectory(_ FileName: String) -> String
Shared Function GetParentDirectory(FileName As String) As String
Parameters: