Skip to content

Commit b6fb97f

Browse files
authored
Fix to download a root directory (#49)
* Fix to download rood directory * More explicit fix
1 parent 0c582eb commit b6fb97f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/index.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,10 @@ function downloadArchiveRequest(
4343

4444
const baseUrl = settings.baseUrl;
4545
let url = URLExt.join(baseUrl, DIRECTORIES_URL, URLExt.encodeParts(path));
46+
// Request downloading the root folder
47+
if (path === '') {
48+
url += '/';
49+
}
4650

4751
const fullurl = new URL(url);
4852

0 commit comments

Comments
 (0)