Skip to content

Commit

Permalink
increase file limit to 1000
Browse files Browse the repository at this point in the history
  • Loading branch information
anadius committed Jun 6, 2020
1 parent f4333e7 commit be538cc
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ class Account {
`files?q="${folderId}"+in+parents`
+ "+and+mimeType+!%3D+'application%2Fvnd.google-apps.folder'"
+ "&fields=files(id,webViewLink,size,name,mimeType,md5Checksum,shortcutDetails/*)"
+ "&orderBy=name_natural&supportsAllDrives=true&includeItemsFromAllDrives=true"
+ "&orderBy=name_natural&supportsAllDrives=true&includeItemsFromAllDrives=true&pageSize=1000"
);
}
// if it's shortcut/file, set notLoaded to true and grab the info later
Expand Down Expand Up @@ -204,7 +204,7 @@ class Account {
+ "+and+mimeType+!%3D+'application%2Fvnd.google-apps.folder'"
+ "+and+appProperties+has+%7B+key%3D'createdWithDdEfc'+and+value%3D'1'+%7D"
+ `&fields=files(id,webViewLink,permissionIds,size,name,mimeType,trashed)`
+ "&orderBy=name_natural&supportsAllDrives=true&includeItemsFromAllDrives=true"
+ "&orderBy=name_natural&supportsAllDrives=true&includeItemsFromAllDrives=true&pageSize=1000"
);

return Object.assign(data2, data1);
Expand Down
2 changes: 1 addition & 1 deletion templates/decrypt.php.template
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ $info = function($data) {
'files?q="' . $folderId . '"+in+parents'
. '+and+mimeType+!%3D+"application%2Fvnd.google-apps.folder"'
. '&fields=files(id,size,name,mimeType,md5Checksum,shortcutDetails/*)'
. '&orderBy=name_natural&supportsAllDrives=true&includeItemsFromAllDrives=true'
. '&orderBy=name_natural&supportsAllDrives=true&includeItemsFromAllDrives=true&pageSize=1000'
);
}
// if it's shortcut/file, set notLoaded to true and grab the info later
Expand Down
2 changes: 1 addition & 1 deletion templates/worker.js.template
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ async function info(data) {
`files?q="${folderId}"+in+parents`
+ "+and+mimeType+!%3D+'application%2Fvnd.google-apps.folder'"
+ "&fields=files(id,size,name,mimeType,md5Checksum,shortcutDetails/*)"
+ "&orderBy=name_natural&supportsAllDrives=true&includeItemsFromAllDrives=true"
+ "&orderBy=name_natural&supportsAllDrives=true&includeItemsFromAllDrives=true&pageSize=1000"
);
}
// if it's shortcut/file, set notLoaded to true and grab the info later
Expand Down

0 comments on commit be538cc

Please sign in to comment.