You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Web: Support a Download action on folder context menus in explorer #83579
changed the title [-]Web: Support _Download_ action on folder context menu in explorer[/-][+]Web: Support a Download action on folder context menus in explorer[/+]on Oct 29, 2019
Benjamin Pasero (@bpasero) I think this is starting to become a bit of an issue. Has there been any investigations here? Rather than using native fs APIs, couldn't we just zip and return a single file?
Rather than using native fs APIs, couldn't we just zip and return a single file?
We would need to use a third party library for this purpose, as there is no built in zip support in node.js for multi-file archives. We already have some usage of such a library in core (I think to extract extensions) so I think it is doable. Probably needs a bit of investigation if we can do it in a clever way that involves streams and not requires all of the files to be compressed in-memory or even to disk.
Activity
[-]Web: Support _Download_ action on folder context menu in explorer[/-][+]Web: Support a Download action on folder context menus in explorer[/+]bpasero commentedon Feb 1, 2020
Exploration in https://github.com/microsoft/vscode/compare/ben/chrome-fs-api leveraging new Chrome native fs APIs.
More context in https://github.com/MicrosoftDocs/vsonline/issues/57#issuecomment-581017834
Chuxel commentedon Sep 14, 2020
Benjamin Pasero (@bpasero) I think this is starting to become a bit of an issue. Has there been any investigations here? Rather than using native fs APIs, couldn't we just zip and return a single file?
bpasero commentedon Sep 14, 2020
None that lead to a conclusion I would say.
We would need to use a third party library for this purpose, as there is no built in zip support in node.js for multi-file archives. We already have some usage of such a library in core (I think to extract extensions) so I think it is doable. Probably needs a bit of investigation if we can do it in a clever way that involves streams and not requires all of the files to be compressed in-memory or even to disk.
bpasero commentedon Oct 19, 2020
Leveraging new Chrome/Edge file system access API (https://wicg.github.io/file-system-access/) to support downloading folders or large files.
isidorn commentedon Oct 19, 2020
Very cool 👏