dir_ops
1.0.0
Handliche Verzeichnisoperationen zusammen mit hausgemachten Dir/Path -Klassen
Dokumentation
Pypi
pip install kabbes_dir_ops
Weitere detailliertere Dokumentation finden Sie in den auf den Seiten bereitgestellten Informationen. Oder noch besser, lesen Sie den Quellcode.
import dir_ops as do do . 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