Path
Overview
Filesystem Path utilities.
Location
- Reference: Island.fx
- Namespace: RemObjects.Elements.System
constructor protected
constructor
Path()
init()
Path()
Sub New()
ChangeExtension
Change the extension of a filename, replacing it with the new one.
Parameters:
- FileName:
- NewExtension:
Combine two paths, adds them together with the system's path seperator.
Parameters:
- BasePath:
- Path:
Combine two paths, adds them together with the system's path seperator.
Parameters:
- BasePath:
- Path1:
- Path2:
DirectorySeparatorChar
Directory seperator; generally '\' on Windows, and '/' on others.
class property DirectorySeparatorChar: Char read;
class Char DirectorySeparatorChar { get; }
static var DirectorySeparatorChar: Char { get{} }
class Char DirectorySeparatorChar { __get; }
Shared ReadOnly Property DirectorySeparatorChar() As Char
Equals virtual (declared in Object)
Default constructor.
Parameters:
- aOther: the reference to compare this with.
Finalize protected virtual (declared in Object)
method Finalize
void Finalize()
func Finalize()
void Finalize()
Sub Finalize()
GetExtension
Returns the extension of a filename, including the .
Parameters:
- FileName:
GetFileName
Returns the filename without directory.
Parameters:
- FileName:
GetFileNameWithoutExtension
Returns the filename without directory and extension.
Parameters:
- FileName:
GetFullPath Android, Fuchsia, iOS, iOS Simulator, Mac Catalyst, macOS, tvOS, tvOS Simulator, Ubuntu, visionOS, visionOS Simulator, watchOS, watchOS Simulator, Windows
Gets the full absolute path from a relative path.
Parameters:
- RelativePath:
GetHashCode virtual (declared in Object)
Returns a hashcode for this object. Overriden implementations should make sure that the number returned here is constant given the same object.
method GetHashCode: Int32
Int32 GetHashCode()
func GetHashCode() -> Int32
Int32 GetHashCode()
Function GetHashCode() As Int32
GetParentDirectory
Returns the paraent directory.
Parameters:
- FileName:
GetType (declared in Object)
Returns the actual type of this class
method GetType: Type
Type GetType()
func GetType() -> Type
Type GetType()
Function GetType() As Type
ListSeparator Android, Fuchsia, iOS, iOS Simulator, Mac Catalyst, macOS, tvOS, tvOS Simulator, Ubuntu, visionOS, visionOS Simulator, watchOS, watchOS Simulator, Windows
Returns the system's list seperator; generally ; on windows and : on posix.
class property ListSeparator: Char read;
class Char ListSeparator { get; }
static var ListSeparator: Char { get{} }
class Char ListSeparator { __get; }
Shared ReadOnly Property ListSeparator() As Char
ReferenceEquals (declared in Object)
Compares two references for equivalence (even if they have an equals operator)
Parameters:
- a: left value
- b: right value
ToString virtual (declared in Object)
Gets the string representation of this method.
DirectorySeparatorChar
Directory seperator; generally '\' on Windows, and '/' on others.
class property DirectorySeparatorChar: Char read;
class Char DirectorySeparatorChar { get; }
static var DirectorySeparatorChar: Char { get{} }
class Char DirectorySeparatorChar { __get; }
Shared ReadOnly Property DirectorySeparatorChar() As Char
ListSeparator Android, Fuchsia, iOS, iOS Simulator, Mac Catalyst, macOS, tvOS, tvOS Simulator, Ubuntu, visionOS, visionOS Simulator, watchOS, watchOS Simulator, Windows
Returns the system's list seperator; generally ; on windows and : on posix.
ChangeExtension
Change the extension of a filename, replacing it with the new one.
Parameters:
- FileName:
- NewExtension:
Combine two paths, adds them together with the system's path seperator.
Parameters:
- BasePath:
- Path:
Combine two paths, adds them together with the system's path seperator.
Parameters:
- BasePath:
- Path1:
- Path2:
GetExtension
Returns the extension of a filename, including the .
Parameters:
- FileName:
GetFileName
Returns the filename without directory.
Parameters:
- FileName:
GetFileNameWithoutExtension
Returns the filename without directory and extension.
Parameters:
- FileName:
GetFullPath Android, Fuchsia, iOS, iOS Simulator, Mac Catalyst, macOS, tvOS, tvOS Simulator, Ubuntu, visionOS, visionOS Simulator, watchOS, watchOS Simulator, Windows
Gets the full absolute path from a relative path.
Parameters:
- RelativePath:
GetParentDirectory
Returns the paraent directory.
Parameters:
- FileName:
ReferenceEquals (declared in Object)
Compares two references for equivalence (even if they have an equals operator)
Parameters:
- a: left value
- b: right value
constructor protected
constructor
Path()
init()
Path()
Sub New()
Equals virtual (declared in Object)
Default constructor.
Parameters:
- aOther: the reference to compare this with.
Finalize protected virtual (declared in Object)
method Finalize
void Finalize()
func Finalize()
void Finalize()
Sub Finalize()
GetHashCode virtual (declared in Object)
Returns a hashcode for this object. Overriden implementations should make sure that the number returned here is constant given the same object.
method GetHashCode: Int32
Int32 GetHashCode()
func GetHashCode() -> Int32
Int32 GetHashCode()
Function GetHashCode() As Int32
GetType (declared in Object)
Returns the actual type of this class
method GetType: Type
Type GetType()
func GetType() -> Type
Type GetType()
Function GetType() As Type
ToString virtual (declared in Object)
Gets the string representation of this method.