Types
Represents file system path
- BlockDevice
-
Represents a block device in a file system (S_IFBLK)
- CharDevice
-
Represents a character device in a file system (S_IFCHR)
- Dir
-
Represents a directory in a file system (S_IFBLK)
- FifoFile
-
Represents a fifo file in a file system (S_IFIFO)
- File
-
Represents a file in a file system (S_IFREG)
- SocketFile
-
Represents a socket file in a file system (S_IFSOCK)
- Symlink
-
Represents a link in a file system (S_IFLNK)
Constructors
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, 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)