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