singlestoredb.management.files.FileSpace.listdir

FileSpace.listdir(path: str | PathLike[str] = '/', *, recursive: bool = False) List[str]

List the files / folders at the given path.

Parameters:

path (Path or str, optional) – Path to the file location

Return type:

List[str]