We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
/
1 parent 4f023de commit 20b3917Copy full SHA for 20b3917
1 file changed
src/components/FileManager/file-manager.ts
@@ -27,11 +27,11 @@ export async function getFolderZip(folderPath: string) {
27
for (const file of files) {
28
const path = resolve(file.parentPath, file.name);
29
if (file.isDirectory()) {
30
- zip.folder(path);
+ zip.folder(path.replace("/", ""));
31
} else if (file.isFile()) {
32
const absolutePath = resolve(folderPath, file.parentPath, file.name);
33
const content = await readFile(absolutePath);
34
- zip.file(path, content);
+ zip.file(path.replace("/", ""), content);
35
}
36
37
return await zip.generateAsync({
0 commit comments