Skip to content

Enhancement: Add a --recursive or --all parameter to get files in nested folders #2376

@veronicageek

Description

@veronicageek

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions