Handy directory operations
Project description
dir_ops
Handy directory operations along with homemade Dir/Path classes
Installation
pip install kabbes_dir_ops
Usage
For more in-depth documentation, read the information provided on the Pages. Or better yet, read the source code.
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
Author
James Kabbes
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
kabbes_dir_ops-0.9.0.tar.gz
(10.2 kB
view hashes)
Built Distribution
Close
Hashes for kabbes_dir_ops-0.9.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | df0a13b372f63dd0e535a66e46d184f240e88170b8b45900437cd5288db60cee |
|
MD5 | d5b3e889982b08f8006c8df75912a8eb |
|
BLAKE2b-256 | 36a97b96996fe913ee1f497b2800d348ba71fd3dd417811ec14d7ef4655ae825 |