diff --git a/src/sync.d b/src/sync.d index b4d413a1..4247113c 100644 --- a/src/sync.d +++ b/src/sync.d @@ -391,7 +391,7 @@ final class SyncEngine { import std.path; writeln("Creating folder ..."); - folderItem["name"] = baseName(path); + folderItem["name"] = baseName(path).idup; folderItem["fileSystemInfo"].object["lastModifiedDateTime"] = timeLastModified(path).toUTC().toISOExtString(); onedrive.createByPath(dirName(path), folderItem); }