common_files
Lists common files, optionally filtered by a prefix. Prefixes are useful to limit the list common files in a specific directory.
Parameters
mb.common_files(prefix=)
prefix
:Optional[str]
A prefix to filter on when listing common files.
Returns
List[str]
: The filepaths of common files.
Examples
Listing all common files
Get a list of all common files in the Modelbit workspace:
mb.common_files()
Listing all common files in the lib
directory
Limit the list of returned common files using the prefix=
parameter:
mb.common_files(prefix="lib/")