Berlin Brown's Weblog

All | General | Java
« Jython, Struts, and Hibernate | Weblog

20061009 Monday October 09, 2006

Simple find a file name in python/jython

Through the use of python‘s glob library, this simple script mimics the ‘find‘ operation. Customize to your liking.

Example Results:

scanning=* ./\sql\ums\
scanning=* ./\sql\uw\

application parameters= ./ = *.txt
Number of files= 9
Reporting All Files:
./\conf\orig\x\ca\xtemp.txt
./\conf\orig\y\ca\AimdnldDesc.txt
./\conf\orig\y\ca\xtemp.txt
./\htdocs\ca\map\temp.txt
done

Recursive Glob in Python

Posted by berlinbrown ( Oct 09 2006, 05:32:38 PM EDT ) Permalink Comments [0]

Comments:

Post a Comment:

Name:
E-Mail:
URL:

Your Comment:

HTML Syntax: On

Please answer this simple math question

8 + 64 =