helpers.general¶
General Helpers.
Functions¶
|
Check file_name exists based on input. |
|
Create a directory. |
|
Take input and path and write a file. |
Module Contents¶
- helpers.general.check_file(file_name: str) bool ¶
Check file_name exists based on input.
- Parameters:
file_name (str) – file name to check
- helpers.general.create_folder(directory: str) None ¶
Create a directory.
- Parameters:
directory (str) – Directory path to create
- helpers.general.write_output(text: str, path: str, filename: str, ext: str = 'txt') None ¶
Take input and path and write a file.
- Parameters:
text (str) – text to write
path (str) – directory path
filename (str) – filename