From be03fa48df5afe2649e59413713e927af092e095 Mon Sep 17 00:00:00 2001 From: abraunegg Date: Sat, 21 Apr 2018 07:09:18 +1000 Subject: [PATCH] Revert 77c0cdbe24b1360b82685b4e5842df2ae23e7999 temporarily * The fix in 77c0cdbe24b1360b82685b4e5842df2ae23e7999 whilst resolves 'Key not found: lastModifiedDateTime' introduces a bug where files deleted by onedrive, are not deleted locally. Reverting the change to implement a fuller fix for 'Key not found: lastModifiedDateTime'. --- src/sync.d | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/sync.d b/src/sync.d index 652cec13..8f714fbb 100644 --- a/src/sync.d +++ b/src/sync.d @@ -46,7 +46,10 @@ private Item makeItem(const ref JSONValue driveItem) cTag: "cTag" in driveItem ? driveItem["cTag"].str : null, // cTag is missing in old files (and all folders in OneDrive Biz) // OneDrive API Change: https://github.com/OneDrive/onedrive-api-docs/issues/834 // Fixes issue 'Key not found: lastModifiedDateTime' (#334, #337) - mtime: ("fileSystemInfo" in driveItem && "lastModifiedDateTime" in driveItem["fileSystemInfo"])? SysTime.fromISOExtString(driveItem["fileSystemInfo"]["lastModifiedDateTime"].str) : SysTime(0), + //mtime: ("fileSystemInfo" in driveItem && "lastModifiedDateTime" in driveItem["fileSystemInfo"])? SysTime.fromISOExtString(driveItem["fileSystemInfo"]["lastModifiedDateTime"].str) : SysTime(0), + // Revert 77c0cdbe24b1360b82685b4e5842df2ae23e7999 temp + mtime: "fileSystemInfo" in driveItem ? SysTime.fromISOExtString(driveItem["fileSystemInfo"]["lastModifiedDateTime"].str) : SysTime(0), + }; if (isItemFile(driveItem)) {