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.7.0.tar.gz
(10.5 kB
view hashes)
Built Distribution
Close
Hashes for kabbes_dir_ops-0.7.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d4730b3c40e80862e93dc48148069eef73bfca78e0a169d50af4017df7dfd263 |
|
MD5 | 679d04280a175df319138e12798286e2 |
|
BLAKE2b-256 | 3d0a5159970cc43e232e101cf3a8950c28862f78e2a79100a020addfbcf60783 |