packages/filesystem/src/common/download/README.md
Provides the file download contribution to the Files navigator.
Supports single and multi file downloads.
C:\ and D:\ on Windows), then we apply rule 3. per disks and we tar the tars.To download a single file or folder use the following endpoint: GET /files/?uri=/encoded/file/uri/to/the/resource.
curl -X GET http://localhost:3000/files/?uri=file:///Users/akos.kitta/git/theia/package.json.To download multiple files (from the same folder) use the PUT /files/ endpoint with the application/json content type header and the following body format:
{
"uri": [
"/encoded/file/uri/to/the/resource",
"/another/encoded/file/uri/to/the/resource"
]
}
curl -X PUT -H "Content-Type: application/json" -d '{ "uris": ["file:///Users/akos.kitta/git/theia/package.json", "file:///Users/akos.kitta/git/theia/README.md"] }' http://localhost:3000/files/