path
Implements Path
and related functions.
Aliases:
-
DIR_SEPARATOR = cond(apply(:!lit.signature<("self": !lit.declref<@stdlib::@builtin::@bool::@Bool> borrow) -> i1> @stdlib::@builtin::@bool::@Bool::@"__mlir_i1__(stdlib::builtin::bool::Bool)", apply(:!lit.signature<() -> !lit.declref<@stdlib::@builtin::@bool::@Bool>> @stdlib::@sys::@info::@"os_is_windows()")), {:string "\\"}, {:string "/"})
Path
The Path object.
Fields:
- path (
String
): The underlying path string representation.
Implemented traits:
AnyType
, CollectionElement
, Copyable
, EqualityComparable
, Hashable
, KeyElement
, Movable
, PathLike
, Stringable
Methods:
__init__
__init__(inout self: Self)
Initializes a path with the current directory.
__init__(inout self: Self, path: StringLiteral)
Initializes a path with the provided path.
Args:
- path (
StringLiteral
): The file system path.
__init__(inout self: Self, path: String)
Initializes a path with the provided path.
Args:
- path (
String
): The file system path.