# On-prem files - List files in folder
This action lists all files in the selected folder. All files will be returned in a single list in alphabetical order, based on the file path value.
You can choose to include files in sub-folders. This action also allows you to filter files based on the file name.
List files in folder action
# Input fields
Select the parent folder to list files from. This can be done either by selecting a folder from the pick list, or toggling the input field to text mode and providing the folder path.|
This should be relative to the base path you define in the connection profile. Learn about relative path.
|Include files in sub-folders?||Choose if you want to include files in sub-folders. Note that all files will be returned in a flat list, instead of a directory. Files will be ordered by the file path.|
|Filter files by name||Only file names matching this naming pattern will be returned. Learn how to use naming patterns.|
# Output fields
|Files||File path||This is the relative path of the file. This path is relative to the base path you define in the connection profile. Learn about relative path.|
|File name||Name of the file, with extension.|
|File size (bytes)||Size of the file contents in bytes.|
|Created time||This is the time that the file was created. This value is set by your OS.|
|Last modified time||This is the last modified time of the file. This value is updated by your OS.|