quote the filename

This commit is contained in:
Girish Ramakrishnan
2024-11-08 21:11:23 +01:00
parent 11cb33fe25
commit 7ae02a62fe
+1 -1
View File
@@ -187,7 +187,7 @@ export function createDirectoryModel(origin, accessToken, api) {
if (action === 'copy') result = await this.copy(this.buildFilePath(files[f].folderPath, files[f].name), targetPath);
if (result.status === 404) {
throw `Source file ${files[f].name} not found`;
throw `Source file "${files[f].name}" not found`;
} else if (result.status === 409) {
targetPath += '-copy';
continue;