Skip to main content

List Files

Command description

Get the files directly inside the specified folder and save their full paths to a list.

Command Input Parameters

input parametersInput parameter typeDescription
Folder PathstrFull path, for example C:\xx
Hidden FilesboolWhether to include hidden files

Command Output Parameters

Output parametersOutput parameter typeDescription
File Listlist[str]

Edge Cases

  • The command reports an error if Folder Path does not exist or is not a folder.
  • Only direct child files are returned. Subfolders are excluded, and the search is not recursive.
  • When Hidden Files is False, hidden files are excluded. If no files match, the command returns an empty list.

Example