immutable class Path
Class Path provides utilities for managing a path to a file in the operating system.
| Modifiers | Return Types | Method and Description |
|---|---|---|
public |
() |
create(String path)Creates a |
public |
() |
create(String[] components) |
| Modifiers | Return Types | Method and Description |
|---|---|---|
public |
() |
destroy() |
| Modifiers | Return Types | Method and Description |
|---|---|---|
public readonly |
(Path) |
copy(AddressMap addresses) |
public readonly |
(String) |
toString()Returns a |
| Modifiers | Return Types | Method and Description |
|---|---|---|
public readonly get locked |
(code) |
fileSeparator()Gets the operating system-specific UTF-8 code point corresponding to the file separator, |
public readonly get locked |
(code) |
pathSeparator()Gets the operating system-specific UTF-8 code point corresponding to the path separator, |
public create(String path) => ()
Creates a Path object corresponding to the path specified by the given String.
path - path to file
public create(String[] components) => ()
public destroy() => ()
public readonly copy(AddressMap addresses) => (Path)
public readonly toString() => (String)
Returns a String representation of the path.
path as a String
public readonly get locked fileSeparator() => (code)
Gets the operating system-specific UTF-8 code point corresponding to the file separator, \ in Windows and / in Linux and macOS.
separator character
public readonly get locked pathSeparator() => (code)
Gets the operating system-specific UTF-8 code point corresponding to the path separator, ; in Windows and : in Linux and macOS.
separator character