reuse
Collection of useful python functions (reuse again and again).
Here is a demo about how to use: Demo.
supported platform
- Linux
- python2.7 and higher
- python3.5 and higher
installation
pip3 install --user py-reuse
how to use
import reuse as rs
rs.check_exist('/path/to/dir') # Check if a file or directory exist
rs.create_dir_if_not_exist('/path/to/new/dir') # Create a directory only when it didn't exist
...