dir_ops
1.0.0
方便的目錄操作以及自製的DIR/PATH課程
文件
PYPI
pip install kabbes_dir_ops
有關更多深入文檔,請閱讀頁面上提供的信息。或者更好,請閱讀源代碼。
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)