mirror of
https://github.com/abraunegg/onedrive
synced 2024-05-29 03:52:27 +02:00
do not care about directory mtime
This commit is contained in:
parent
0f21508cfe
commit
424e77e4b5
11
src/sync.d
11
src/sync.d
|
@ -60,11 +60,6 @@ final class SyncEngine
|
||||||
this.cfg = cfg;
|
this.cfg = cfg;
|
||||||
this.onedrive = onedrive;
|
this.onedrive = onedrive;
|
||||||
itemCache.init();
|
itemCache.init();
|
||||||
folderItem = parseJSON("{
|
|
||||||
\"name\": \"\",
|
|
||||||
\"folder\": {},
|
|
||||||
\"fileSystemInfo\": { \"lastModifiedDateTime\": \"\" }
|
|
||||||
}");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void applyDifferences()
|
void applyDifferences()
|
||||||
|
@ -439,9 +434,9 @@ final class SyncEngine
|
||||||
void createFolderItem(const(char)[] path)
|
void createFolderItem(const(char)[] path)
|
||||||
{
|
{
|
||||||
writeln("Creating folder ...");
|
writeln("Creating folder ...");
|
||||||
folderItem["name"] = baseName(path).idup;
|
JSONValue item = ["name": baseName(path).dup];
|
||||||
folderItem["fileSystemInfo"].object["lastModifiedDateTime"] = timeLastModified(path).toUTC().toISOExtString();
|
item["folder"] = parseJSON("{}");
|
||||||
auto res = onedrive.createByPath(dirName(path), folderItem);
|
auto res = onedrive.createByPath(dirName(path), item);
|
||||||
cacheItem(res);
|
cacheItem(res);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue