Skip to content

Path.info property

pathlib-ts > Path > info

Provides cached stat-like information gathered during directory iteration.

Signature:

get info(): PathInfo | DirEntryInfo;

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.