Revert 77c0cdbe24 temporarily

* The fix in 77c0cdbe24 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'.
This commit is contained in:
abraunegg 2018-04-21 07:09:18 +10:00
parent 66d00c5ec9
commit be03fa48df

View file

@ -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)) {