Skip to content

Commit

Permalink
fix: Fixed double slash on import file paths
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelkoelle committed Jun 30, 2021
1 parent 4d97bf6 commit c49ccf1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/importer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -438,8 +438,9 @@ export default class Importer {
const { base } = Path.parse(file);
if (submissionId) {
const fileName = base;
const fileDir = `${submissionId}/files/`;
const fileDir = `${submissionId}/files`;
const fullPath = `${fileDir}/${fileName}`;
console.log(fullPath);
if (zip.getEntry(fullPath) === null) {
zip.addLocalFile(file, fileDir, fileName);
} else {
Expand Down

0 comments on commit c49ccf1

Please sign in to comment.