How to get files in nested folders in a SPO Library? #2375
Replies: 2 comments 1 reply
-
You should be able to do this using the m365 spo file list --webUrl https://contoso.sharepoint.com/sites/project-x --folder 'Shared Documents/Folder1/Folder2' If that's not working as intended, then it's a bug we should fix. Right now we don't have a way to retrieve all files from all folders in a doclib, but I can imagine that it would be a useful enhancement of the |
Beta Was this translation helpful? Give feedback.
-
Indeed, I'm using Thanks @waldekmastykarz, I've opened issue #2376. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to loop through multiple documents libraries, which may each contain files & folders (at the root), but also nested folders with files inside, to get only the files.
While I can get to the files on the first folder (i.e.: /docLib/Folder1/TestDoc.docx), I can't seem to find a way to get to a nested file inside a few folders (i.e.: /docLib/Folder1/Folder2/TestDoc.docx).
Is there no
-Recursive
parameter or something that would list all the files in a library regardless of inside a folder or not?Beta Was this translation helpful? Give feedback.
All reactions