Retrieves the FileSystemHandle for a file or directory at the specified path. Can be used to check the type (file or directory) and access metadata.
FileSystemHandle
The absolute path of the file or directory.
A promise that resolves to an AsyncIOResult containing the FileSystemHandle.
AsyncIOResult
1.0.0
(await stat('/path/to/entry')) .inspect(handle => console.log(`Kind: ${ handle.kind }, Name: ${ handle.name }`)); Copy
(await stat('/path/to/entry')) .inspect(handle => console.log(`Kind: ${ handle.kind }, Name: ${ handle.name }`));
Retrieves the
FileSystemHandlefor a file or directory at the specified path. Can be used to check the type (file or directory) and access metadata.