Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: recursively read folder entries because most browsers only return the first 100 entries #1

Merged
merged 1 commit into from
Aug 20, 2024

Conversation

gvdp
Copy link
Collaborator

@gvdp gvdp commented Aug 20, 2024

https://developer.mozilla.org/en-US/docs/Web/API/FileSystemDirectoryReader/readEntries

image

Using a recursive function which only resolves when the new readEntries array is empty, which is more in line with the spec.

@gvdp gvdp force-pushed the fix/recursively-read-large-folders branch 3 times, most recently from ed225e4 to f5664fa Compare August 20, 2024 12:25
@gvdp gvdp force-pushed the fix/recursively-read-large-folders branch from f5664fa to fa3d8a1 Compare August 20, 2024 12:27
@gvdp gvdp merged commit 9119b21 into allow-folder-drop Aug 20, 2024
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant