PathInfo class
PathInfo class
Section titled “PathInfo class”Cached stat provider corresponding to CPython’s pathlib.types.PathInfo protocol.
Signature:
export declare class PathInfo extends PathInfoBaseExtends: PathInfoBase
Remarks
Section titled “Remarks”Instances wrap a filesystem path string and lazily cache fs.statSync / fs.lstatSync results. Methods such as PathInfoBase.exists() resolve once and reuse their cached value to avoid duplicate system calls when Path.info is reused across operations.