iterdir_names#
- barecat.Index.iterdir_names(diritem, order=Order.ANY, bufsize=None)#
Iterate over the names of the files and subdirectories in a directory (non-recursively).
- Parameters:
diritem (Union[BarecatDirInfo, str]) – Directory info object or path of the directory.
order (Order) – Order in which to iterate over the files and directories.
bufsize (Optional[int]) – Buffer size for fetching rows.
- Returns:
An iterator over the file and directory names.
- Return type:
Iterator[str]