from_os_str : OsStr -> Path
Create a path from an OS string without losing native path units.
:= []
Filesystem paths backed by the shared roc-lang/path package.
from_os_str : OsStr -> Path
Create a path from an OS string without losing native path units.
Convert a path to an OS string without losing native path units.
Create a portable UTF-8 text path.
from_quote : Str -> Try(Path, [BadQuotedBytes(Str)])
Create a portable UTF-8 path from a quoted literal.
Create a Unix path from a Roc string by storing its UTF-8 bytes.
unix_bytes : List(U8) -> Path
Create a Unix path from raw bytes without validating UTF-8.
Create a Windows path from a Roc string by storing its UTF-16 code units.
windows_u16s : List(U16) -> Path
Create a Windows path from raw UTF-16 code units.
Convert a path to a string if its raw representation is valid text.
Convert a path to a display string, replacing invalid text with U+FFFD.
Returns everything after the last directory separator.
Returns the filename extension without the leading dot.
Adds a separator and a string component to the path.
to_raw : Path -> Raw
Expose the raw OS-specific representation.
from_raw : Raw -> Path
Build a path from the raw OS-specific representation.
Path : Path
Filesystem path type from roc-lang/path.
Raw OS-specific path representation used at platform boundaries.