panda_autograsp.functions.functions.list_files¶
-
panda_autograsp.functions.functions.
list_files
(path='.', exclude=[], recursive=True, prepent_parent=False)[source]¶ Returns a list of files that are present in a folder.
Parameters: - path (
str
, optional) – Parent folder of which you want to list the files, by default.
- exclude (
list
, optional) – A list of files you want to exclude, by default [] - recursive (
bool
, optional) – Option specifying whether you also want to list files of subfolders, by default True - level (
int
, optional) – If recursive is enabled this specifies up till how many levels deep you want to list the files, by default 0 (Defined as all levels). - perpent_parent (
bool
, optional) – Options specifying whether you want to prepent the parent dir to the output paths.
Returns: A list containing the relative paths of all the files in the parent folder.
Return type: List
- path (