Path.info property
pathlib-ts > Path > info
Path.info property
Section titled “Path.info property”Provides cached stat-like information gathered during directory iteration.
Signature:
get info(): PathInfo | DirEntryInfo;Remarks
Section titled “Remarks”When the path originates from Path.iterdir() with withFileTypes: true, this accessor exposes the cached DirEntryInfo. Calling Path.isDir() or Path.stat() refreshes data when necessary.