Types

Path

Represents file system path

Direct children types

Constructors

Path(s:Str, subtype:Any=false)
Path constructor

Methods

/(a:Path, b:Path)
Concatenate two Path-s using /(a:Str, b:Str)
Bool(p:Path)
Checks whether the path is accessible using access(2) and F_OK.
init(p:Path, s:Str)
Path constructor
init(p:Path, other:Path)
Path constructor. Duplicates other Path.
lstat(p:Path)
Issue lstat() system call. Throws StatFail if the call fails.
specific(p:Path)
EXPERIMENTAL, do not use outside of stdlib! Instanciates Path sub-type, depending on what p is
stat(p:Path)
Issue stat() system call. Throws StatFail if the call fails.
Str(p:Path)
String representation of a Path (or it's sub-type)