Skip to content

Some quick tools for directory operations, such as searching for files and creating and clearing directories

Notifications You must be signed in to change notification settings

jjensenmike/python-directorytools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

python-directorytools

Python module to search through a directory

Mike Jensen (jjensen.mike [at] gmail.com)

Distributed under the PSF License: http://www.python.org/psf/license/

Originally wrote for VAVE xml feed destructor (https://github.com/votinginfoproject/VAVE)

Installation

Run:

python setup.py install

Examples

import directorytools as dt

dt.file_by_name("test.txt")

'/home/jensen/personal/python-directorysearch/testdata/test.txt'

dt.folder_list()

['/home/jensen/personal/python-directorysearch/testdata', '/home/jensen/personal/python-directorysearch/testdata/secondlevel', '/home/jensen/personal/python-directorysearch/testdata/secondlevel/thirdlevel1', '/home/jensen/personal/python-directorysearch/testdata/secondlevel/thirdlevel2']

dt.file_by_extension(".xml")

'/home/jensen/personal/python-directorysearch/testdata/test.xml'

About

Some quick tools for directory operations, such as searching for files and creating and clearing directories

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages