zcollection.partitioning.abc.list_partitions#

zcollection.partitioning.abc.list_partitions(fs, path, depth, *, root=True)[source]#

The number of variables used for partitioning.

The function will go down the tree and return all the files present when the requested depth is reached. :param fs: file system object :param path: path to the directory :param depth: maximum depth of the directory tree. :param root: if True, the path is the root of the tree.

Returns:

Iterator of (path, directories, files).

Parameters:
Return type:

Iterator[str]