mirror of
https://github.com/abraunegg/onedrive
synced 2024-06-04 23:12:18 +02:00
fixed bug where an item is incorrectly assumed to be a file
This commit is contained in:
parent
126f2719b8
commit
974be0884b
|
@ -63,7 +63,7 @@ private Item makeItem(const ref JSONValue jsonItem)
|
|||
};
|
||||
|
||||
// extract the file hash
|
||||
if (type == ItemType.file) {
|
||||
if (isItemFile(jsonItem)) {
|
||||
if ("hashes" in jsonItem["file"]) {
|
||||
if ("crc32Hash" in jsonItem["file"]["hashes"]) {
|
||||
item.crc32Hash = jsonItem["file"]["hashes"]["crc32Hash"].str;
|
||||
|
|
Loading…
Reference in a new issue