This Library seems fantastic and exactly what I need for some simple Google Drive Automation. However, I am trying to use the getAllInFolder()
function but it's only returning a subset of files out of the expected 23 files. Not sure if this is relevant but the folderID I am searching, is within a Shared Drive.
FilesApp.getAllInFolder('folderId', null, "files(id,mimeType)");
3 of these are nested folders, (only 1 level deep) and within those folders there are combined 20 images, and 1 PDF.
The response i'm getting is only containing 7 files but it seems random what is returned.
- All 3 folders
- 1 PDF
- 3 Random photos (not all) from 1 of the sub folders.
I can't figure out why it's ignoring all the other photos.
I'm happy to provide for more details if you let me know how best to debug.