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.8.0.tar.gz
(10.2 kB
view hashes)
Built Distribution
Close
Hashes for kabbes_dir_ops-0.8.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7112b16f35dce50f76fe8a64252aa388ef607f09ca34f53e3f3205eb79589775 |
|
MD5 | a95941a7a5a081358a1b979999b18414 |
|
BLAKE2b-256 | a8590d1f5f27375ce549bfefb861b7ca80e2ed2bb2a6e861e5e186009e9a119f |