dir_ops
1.0.0
Handy directory operations along with homemade Dir/Path classes
Documentation
PyPI
pip install kabbes_dir_ops
For more in-depth documentation, read the information provided on the Pages. Or better yet, read the source code.
import dir_ops as dodo.join( 'C', 'Path', 'To', 'File' )>>> 'C:/Path/To/File'
do.path_to_dirs( 'C:/Path/To/File/asdf.txt' )>>> [ 'C', 'Path', 'To', 'File', 'asdf.txt' ]
Path_inst = do.Path( 'C:/Path/To/File/asdf.txt')print( Path_inst.exists() )>>> True
Path_inst.print_atts() #from parent_class dependency>>>
---Path Class---
path: C:/Path/To/File/asdf.txt
dirs: ['C:', 'Path', 'To', 'File', 'asdf.txt']
ending: txt
size: None
James Kabbes