migrate: remove .files, .folders, use .children instead

This commit is contained in:
Bao Nguyen
2023-02-14 14:02:32 +07:00
parent 82db036bfb
commit 87d33e2f9d
15 changed files with 106 additions and 107 deletions

View File

@@ -61,7 +61,7 @@
if(cancelled) return;
if(item.type == 'folder'){
let folder = parent.folder(item.name);
for(let child_item of [...item.folders, ...item.files]){
for(let child_item of [...item.children]){
child_item = $hardDrive[child_item];
await add_to_archive(folder, child_item);
}