question

viki87 avatar image
viki87 asked

How to get list of files that is in the folder?

This request return all files in account: { {metadataUrl}}/nodes?filters=kind:FILE If I have ID of folder and want to take only list of files that is in this folder then it doesn't work by this way: { {metadataUrl}}/nodes?filters=kind:FILE AND parents.0=MyFolderID I receive an error: "Invalid filter: kind:FILE AND parents.0=..." How to get list of files that is in the folder?
amazon drive
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

Halfword Software Inc avatar image
Halfword Software Inc answered
You can use nodes/{parentId}/children to list the files and folders. Remember max number of files returned is 200, you can use pagination to fetch more.
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.