Skip to content

Commit d964d73

Browse files
committed
fix(file): use proper file.name on cleaning up media dir; fixes #128
1 parent ab193f9 commit d964d73

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/helper/file-helper.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ export class FileHelper {
3939
const files = await archive.folder(dir);
4040
for (const file of files) {
4141
if (cb(file)) {
42-
await archive.remove(file.relativePath);
42+
await archive.remove(file.name);
4343
removed.push(file.name);
4444
}
4545
}

0 commit comments

Comments
 (0)