Crate path_abs [−] [src]
Extensions to stdlib Path
types, plus the PathAbs
type.
PathAbs
adds a much needed type to the rust ecosystem:
a path which is guaranteed to exist (at least on creation), is serializable, and has
extension methods like create[file/dir/dir_all]
, read_*
and write_*
.
In addition, PathAbs
is serializable through serde (even on windows!) by using the crate
stfu8
to encode/decode any ill-formed UTF-16.
See that crate for more details on how the resulting encoding can be edited (by hand)
even in the case of what would be ill-formed UTF-16.
Structs
PathAbs |
An path which is guaranteed to:
- Exist (on creation, the file may or may not be deleted later).
- Be absolute (cannonicalized). On linux this means it will start with root ( |
PathDir |
An absolute path to a directory that exists, with associated methods. |
PathFile |
An absolute path to a file that exists, with associated methods. |
Enums
PathType |
An enum representing absolute paths of known types. |