qualia_core.utils.file package
Submodules
Module contents
- class qualia_core.utils.file.CSVReader[source]
Bases:
Generic
[T
]
- class qualia_core.utils.file.DirectoryReader[source]
Bases:
object
- read(directory: Path = None, ext: str = '', recursive: bool = False)[source]
Return the list of files in a given directory, optionally matching a given extension.
Remark: case-sensitive.
- Parameters:
directory – directory to search in, if empty search is performed in working directory
ext – optional file extension to match, ‘.’ has to be inserted by the caller as required
recursive – do a recursive search