download-directory / download-directory.github.io

Web App: Download just a sub directory from a GitHub repo.
https://download-directory.github.io
MIT License
1.25k stars 117 forks source link

File System Access API support #94

Closed topjohncian closed 1 year ago

topjohncian commented 1 year ago

We can download directories without zipping using the File System Access API.

I'd like to implement this feature. 😆

fregante commented 1 year ago

Thank you for the offer! I have a couple of questions:

topjohncian commented 1 year ago

Thank you for your reply!

  1. Sorry I have doubts about your first question. 😢 Could you please describe it more? You can open it, right-click, click Download to see the effect.
  2. Using the API there's also a step of creating the directory and submitting in the "save as" dialog. It seems to me that it can be set as an optional feature.
fregante commented 1 year ago

As I feared, it's only possible by granting access to whole folder, which is super bad UX:

Screenshot 1

macOS doesn't even allow this for the Downloads folder:

Screenshot

2. it can be set as an optional feature

It doesn't offer enough benefits to justify this being an option. I suppose it would improve support for super large files but those are rarely found in a git repo to begin with