Synchronous version of stat.
Retrieves metadata about a file or directory.
Note: Returns FileSystemHandleLike instead of FileSystemHandle because
native FileSystemHandle objects cannot be serialized across threads.
FileSystemHandleLike is a plain object with name and kind properties.
For file entries, it also includes size, type, and lastModified -
use isFileHandleLike() to check and narrow the type.
Synchronous version of
stat. Retrieves metadata about a file or directory.Note: Returns
FileSystemHandleLikeinstead ofFileSystemHandlebecause nativeFileSystemHandleobjects cannot be serialized across threads.FileSystemHandleLikeis a plain object withnameandkindproperties. For file entries, it also includessize,type, andlastModified- useisFileHandleLike()to check and narrow the type.