@theia/filesystem 1.56.0 → 1.57.0-next.37
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -1
- package/package.json +4 -4
- package/src/common/download/README.md +8 -4
package/README.md
CHANGED
|
@@ -26,5 +26,6 @@ The `@theia/filesystem` extension provides functionality to interact with the fi
|
|
|
26
26
|
- [一 (Secondary) GNU General Public License, version 2 with the GNU Classpath Exception](https://projects.eclipse.org/license/secondary-gpl-2.0-cp)
|
|
27
27
|
|
|
28
28
|
## Trademark
|
|
29
|
+
|
|
29
30
|
"Theia" is a trademark of the Eclipse Foundation
|
|
30
|
-
https://www.eclipse.org/theia
|
|
31
|
+
<https://www.eclipse.org/theia>
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@theia/filesystem",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.57.0-next.37+4e3b183da",
|
|
4
4
|
"description": "Theia - FileSystem Extension",
|
|
5
5
|
"dependencies": {
|
|
6
|
-
"@theia/core": "1.
|
|
6
|
+
"@theia/core": "1.57.0-next.37+4e3b183da",
|
|
7
7
|
"@types/body-parser": "^1.17.0",
|
|
8
8
|
"@types/multer": "^1.4.7",
|
|
9
9
|
"@types/tar-fs": "^1.16.1",
|
|
@@ -71,10 +71,10 @@
|
|
|
71
71
|
"watch": "theiaext watch"
|
|
72
72
|
},
|
|
73
73
|
"devDependencies": {
|
|
74
|
-
"@theia/ext-scripts": "1.
|
|
74
|
+
"@theia/ext-scripts": "1.57.0"
|
|
75
75
|
},
|
|
76
76
|
"nyc": {
|
|
77
77
|
"extends": "../../configs/nyc.json"
|
|
78
78
|
},
|
|
79
|
-
"gitHead": "
|
|
79
|
+
"gitHead": "4e3b183daab034ae86eaa610421d4d9791ffdaa5"
|
|
80
80
|
}
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
Provides the file download contribution to the `Files` navigator.
|
|
4
4
|
|
|
5
5
|
Supports single and multi file downloads.
|
|
6
|
+
|
|
6
7
|
1. A single file will be downloaded as is.
|
|
7
8
|
2. Folders will be downloaded az tar archives.
|
|
8
9
|
3. When downloading multiple files, the name of the closest common parent directory will be used for the archive.
|
|
@@ -10,10 +11,11 @@ Supports single and multi file downloads.
|
|
|
10
11
|
|
|
11
12
|
### REST API
|
|
12
13
|
|
|
13
|
-
|
|
14
|
-
|
|
14
|
+
- To download a single file or folder use the following endpoint: `GET /files/?uri=/encoded/file/uri/to/the/resource`.
|
|
15
|
+
- Example: `curl -X GET http://localhost:3000/files/?uri=file:///Users/akos.kitta/git/theia/package.json`.
|
|
16
|
+
|
|
17
|
+
- 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:
|
|
15
18
|
|
|
16
|
-
- 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:
|
|
17
19
|
```json
|
|
18
20
|
{
|
|
19
21
|
"uri": [
|
|
@@ -22,10 +24,12 @@ Supports single and multi file downloads.
|
|
|
22
24
|
]
|
|
23
25
|
}
|
|
24
26
|
```
|
|
27
|
+
|
|
25
28
|
```
|
|
26
29
|
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/
|
|
27
30
|
```
|
|
28
31
|
|
|
29
32
|
## License
|
|
33
|
+
|
|
30
34
|
- [Eclipse Public License 2.0](http://www.eclipse.org/legal/epl-2.0/)
|
|
31
|
-
- [一 (Secondary) GNU General Public License, version 2 with the GNU Classpath Exception](https://projects.eclipse.org/license/secondary-gpl-2.0-cp)
|
|
35
|
+
- [一 (Secondary) GNU General Public License, version 2 with the GNU Classpath Exception](https://projects.eclipse.org/license/secondary-gpl-2.0-cp)
|