ReadonlykindThe kind is always 'file' for file handles.
ReadonlylastThe last modified timestamp in milliseconds since Unix epoch.
ReadonlynameThe name of the file or directory.
ReadonlysizeThe size of the file in bytes.
ReadonlytypeThe MIME type of the file (e.g., 'text/plain', 'image/png').
Serializable version of
FileSystemFileHandlewith file metadata.Extends
FileSystemHandleLikewith file-specific properties that are normally obtained by callinghandle.getFile()on a nativeFileSystemFileHandle.Why this type exists: To provide file metadata (size, type, lastModified) without requiring async operations. The native API requires
await handle.getFile()to access these properties, but this type pre-fetches and stores them.When it's used:
statSync()for file entriesDirEntryLike.handlewhen the entry is a fileisFileHandleLike()to narrow fromFileSystemHandleLike