Path package:path
Path of some base and type.
The type variables are:
- b — base, the base location of the path; absolute or
relative.
- t — type, whether file or directory.
Internally it is a
PosixPath, which can be of two formats only:
- File format: file.txt, foo/bar.txt,
/foo/bar.txt
- Directory format: foo/, /foo/bar/
All directories end in a trailing separator. There are no duplicate
path separators
//, no
.., no
./, no
~/, etc.
Path of some base and type.
The type variables are:
- b — base, the base location of the path; absolute or
relative.
- t — type, whether file or directory.
Internally it is a
WindowsPath, which can be of two formats
only:
- File format: file.txt, foo/bar.txt,
/foo/bar.txt
- Directory format: foo/, /foo/bar/
All directories end in a trailing separator. There are no duplicate
path separators
//, no
.., no
./, no
~/, etc.
Path of some base and type.
The type variables are:
- b — base, the base location of the path; absolute or
relative.
- t — type, whether file or directory.
Internally it is a
PosixPath, which can be of two formats only:
- File format: file.txt, foo/bar.txt,
/foo/bar.txt
- Directory format: foo/, /foo/bar/
All directories end in a trailing separator. There are no duplicate
path separators
//, no
.., no
./, no
~/, etc.
Path of some base and type.
The type variables are:
- b — base, the base location of the path; absolute or
relative.
- t — type, whether file or directory.
Internally it is a
WindowsPath, which can be of two formats
only:
- File format: file.txt, foo/bar.txt,
/foo/bar.txt
- Directory format: foo/, /foo/bar/
All directories end in a trailing separator. There are no duplicate
path separators
//, no
.., no
./, no
~/, etc.
This library provides a well-typed representation of paths in a
filesystem directory tree.
Both
Path.Posix and
Path.Windows provide the same
interface. This module will reexport the appropriate module for your
platform.
Path of some base and type.
The type variables are:
- b — base, the base location of the path; absolute or
relative.
- t — type, whether file or directory.
Internally is a string. The string can be of two formats only:
- File format: file.txt, foo/bar.txt,
/foo/bar.txt
- Directory format: foo/, /foo/bar/
All directories end in a trailing separator. There are no duplicate
path separators
//, no
.., no
./, no
~/, etc.
Path of some base and type.
The type variables are:
- b — base, the base location of the path; absolute or
relative.
- t — type, whether file or directory.
Internally is a string. The string can be of two formats only:
- File format: file.txt, foo/bar.txt,
/foo/bar.txt
- Directory format: foo/, /foo/bar/
All directories end in a trailing separator. There are no duplicate
path separators
//, no
.., no
./, no
~/, etc.
Support for well-typed paths
Support for well-typed paths.
Exceptions that can occur during path operations.
Deprecated: Please use PathException instead.
This library provides a well-typed representation of paths in a
filesystem directory tree.
Both
Path.Posix and
Path.Windows provide the same
interface. This module will reexport the appropriate module for your
platform.
Convert to a PosixPath type.
All directories have a trailing slash, so if you want no trailing
slash, you can use
dropTrailingPathSeparator from the filepath
package.
Convert to a WindowsPath type.
All directories have a trailing slash, so if you want no trailing
slash, you can use
dropTrailingPathSeparator from the filepath
package.
Convert to a
FilePath type.
All directories have a trailing slash, so if you want no trailing
slash, you can use
dropTrailingPathSeparator from the filepath
package.