mangoes.utils.io module¶
Utility functions to read and write data from/to text files
-
mangoes.utils.io.
recursive_list_files
(path)¶ Return list of base_path to the files present inside the directory (and all subdirectories’) pointed to by ‘base_path’.
- Parameters
- path: str
base_path to the folder to scan for files
- Returns
- list of str
-
mangoes.utils.io.
get_reader
(source)¶ Context manager to get a reader to a source
- Parameters
- sourcestr or Iterable
If the source is a path to a file, an archive or a directory, yields a reader to this(these) file(s) If the source is an iterable, yields it
- Yields
- Iterable