This function lists just the files in a directory, not sub-directories.
directory (str) – The directory to search for files.
str
fullpath (bool, optional) – Specifies if the returned list of strings is with the full path.
bool
extensions (list of str, optional) – A list of allowed extensions, e.g. [“jpg”, “png”] if you just want to list images.
list
list of str – A list of files as string if files exist, or empty list.
A computational framework for collaboration and research in Architecture, Engineering, Fabrication, and Construction.
Copyright © 2017-2021 compas-dev