Skip to content

pathlib-ts package

pathlib-ts

Class

Description

DirEntryInfo

PathInfo implementation that wraps a Node Dirent.

Path

Concrete path that layers filesystem I/O on top of PurePath semantics.

PathInfo

Cached stat provider corresponding to CPython’s pathlib.types.PathInfo protocol.

PathInfoBase

Cached stat provider

PathParents

Sequence-like view over the logical ancestors of a PurePath.

PosixPath

POSIX-flavored Path implementation.

PurePath

Immutable filesystem path that never performs I/O.

PurePosixPath

Pure-path flavour that uses POSIX parsing rules.

PureWindowsPath

Pure-path flavour that uses Windows drive and separator semantics.

UnsupportedOperation

Error thrown when the host runtime lacks a required filesystem capability.

WindowsPath

Windows-flavored Path implementation.

Variable

Description

_default

DefaultPath

Alias for the platform-appropriate concrete path class (WindowsPath on Windows, otherwise PosixPath).

Type Alias

Description

ExtractPolicy

PathIsRelativeToFn

PathIsRelativeToOptions

PathIsRelativeToReturn

PathLike

Union of string-like inputs accepted by path constructors and helpers.

PathOptionsArg

PathRelativeToFn

PathRelativeToOptions

PathRelativeToReturn

ResolutionPolicy

Policy for resolving how the other argument should be treated.

WalkTuple

Tuple returned by Path.walk() mirroring CPython’s (dirpath, dirnames, filenames) shape.