Usage
Get nested files in (maybe also nested) folders.
Description
I'm using m365 spo file list --webUrl $SiteUrl --folder $folder.ServerRelativeUrl to get all the files in a folder (at the root of the library, for example /docLib/Folder1/TestDoc.docx), and that works fine.
However, it would be nice to have a --recursive or --all parameter when we want other nested files (i.e.: /docLib/Folder1/Folder2/TestDoc.docx). Especially knowing that we never know how many nested folders we may have in a library.
This can probably also be beneficial when using the folder command: m365 spo folder list.
Options
Complete the table below with the options used on this command. A short (single character) and long version of the option should be provided along with [optional] or <required> parameters.
| Option |
Description |
--recursive |
Will list files or folders even when nested |
Usage
Get nested files in (maybe also nested) folders.
Description
I'm using
m365 spo file list --webUrl $SiteUrl --folder $folder.ServerRelativeUrlto get all the files in a folder (at the root of the library, for example/docLib/Folder1/TestDoc.docx), and that works fine.However, it would be nice to have a
--recursiveor--allparameter when we want other nested files (i.e.:/docLib/Folder1/Folder2/TestDoc.docx). Especially knowing that we never know how many nested folders we may have in a library.This can probably also be beneficial when using the folder command:
m365 spo folder list.Options
Complete the table below with the options used on this command. A short (single character) and long version of the option should be provided along with
[optional]or<required>parameters.--recursive