Class std.io.Path
Synopsis
public class Path extends StringFormattable
Class representing paths in a system-independent manner.
Fields
Constructors
Construct a path from the specified component. The component might be a single name or it can include multiple components joined in a system-dependent manner.
Methods
public String toString();
Return this path as a system-dependent path string.
public bool isAbsolute();
Returns true
if this is an absolute path.
public bool isRelative();
Returns true
if this is a relative path.
Returns the sum of this path and another. The right path cannot be absolute.
public String getBaseName();
Return the base name (final component) of this path.
public static Path getUserDataDir();
Return the path to a directory where user-specific data may be stored.