From 424e77e4b555a12a737619595ae4679946ed8933 Mon Sep 17 00:00:00 2001 From: skilion Date: Mon, 14 Sep 2015 12:57:47 +0200 Subject: [PATCH] do not care about directory mtime --- src/sync.d | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/src/sync.d b/src/sync.d index 015d78ae..820cb8fa 100644 --- a/src/sync.d +++ b/src/sync.d @@ -60,11 +60,6 @@ final class SyncEngine this.cfg = cfg; this.onedrive = onedrive; itemCache.init(); - folderItem = parseJSON("{ - \"name\": \"\", - \"folder\": {}, - \"fileSystemInfo\": { \"lastModifiedDateTime\": \"\" } - }"); } void applyDifferences() @@ -439,9 +434,9 @@ final class SyncEngine void createFolderItem(const(char)[] path) { writeln("Creating folder ..."); - folderItem["name"] = baseName(path).idup; - folderItem["fileSystemInfo"].object["lastModifiedDateTime"] = timeLastModified(path).toUTC().toISOExtString(); - auto res = onedrive.createByPath(dirName(path), folderItem); + JSONValue item = ["name": baseName(path).dup]; + item["folder"] = parseJSON("{}"); + auto res = onedrive.createByPath(dirName(path), item); cacheItem(res); }