WICG / file-system-access

Expose the file system on the user’s device, so Web apps can interoperate with the user’s native applications.
https://wicg.github.io/file-system-access/
Other
669 stars 66 forks source link

Method to get number of files in a FileSystemDirectoryHandle #215

Closed darvid7 closed 2 years ago

darvid7 commented 4 years ago

Currently I don't think there is a way to get the number of files in a directory without iterating over it.

It would be nice to be able to do something like FileSystemDirectoryHandle.length so we can determine how many files are in a directory.

mkruisselbrink commented 2 years ago

Also somewhat related to #101, requesting some method to get metadata from files/directories.

a-sully commented 2 years ago

This issue has been ported to the new spec: https://github.com/whatwg/fs/issues/12