- `create_file_dir()` - returns `bool` if file or directory was created - return type hint set as `bool`
0.1.32
Added
- `read_file()` - `remove_empty` function added back - Was accidentally removed - `ret_did_create` added back
Changed
- `read_file()` - Better and more accurate hint typing - given input variable for `create_file_dir()` - `file` -> `f` - `func_timer()` - `time.time()` -> `time.perf_counter()`
0.1.31
Added
- `fprint()` - You can add the `end` function to the print - `read_file()` - `strip` all lines (default: `True`) - Only works if `splitlines` is set as `True` (default: `True`) - Type hints for returned values - Also for `try_read()`
Changed
- Variables changed - `dir` -> `d` - `file` -> `f` - `filename` -> `fnam` - `read_file()` - Removed `ret_did_create` - Now returns both `lines` and `did_create` as `tuple` - Due to Pylance giving some errors if `ret_did_create` was used - Input variable `do_splitlines` -> `splitlines`
0.1.21
Added
- `read_file()` can now return if a file was created (set `ret_did_create`=`True`)
0.1.5
Added
- New class - `FunctionTimer` - Includes a function timer decorator (`_func_timer()`) and a function to time other functions (`func_timer()`)