Zum Hauptinhalt springen

GetFiles

Lists the platform file system of the tenant: the folder roots, or the folders and files of a root or folder.

Examples​

List the folder roots of the tenant:

octo-cli -c GetFiles

List the content of the default root:

octo-cli -c GetFiles -r "Files"

List the content of a folder:

octo-cli -c GetFiles -r "Files" -p "reports/2026"

Options​

ShortLongRequiredDescription
-r--rootnoWell-known name of the folder root, e.g. 'Files'. Without it the folder roots are listed.
-p--pathnoPath of a folder below the root ('/'-separated). Without it the root itself is listed.
-n--maxnoMaximum number of entries to return (default 1000).

Notes​

Output is JSON: one entry per folder or file with rtId, kind ('root', 'folder' or 'file'), name, size and content type. What you see is limited by your data permissions.

Uses the file API of the asset repository service (GraphQL for metadata, System.Files model, available in every tenant).