sdispatch
index
/home/ut3hax/bin/sdispatch

This tool is useful for walking a project and finding web dispatch directories
quickly. It's output could be easily parsed to be used by another tool, to
update cherrypy configuration.

 
Modules
       
datetime
os
sys

 
Functions
       
StringIO(...)
StringIO([s]) -- Return a StringIO-like stream for reading or writing
defaults()
By default, what directories are searched for?
dirs_accumulator = my_callback(option, opt, value, parser)
find_dirs(start, search_list)
:start: a path
Return all directories that name are in the search list.
Be Non-Case sensative.
Be recursive in nature, walking directories stating from the start path.
get_dirs()
lrm(ops, arg)
Remove an item from a list.
:ops: an incomming list
:arg: an item
main(extra_dirs=<function get_dirs>)
options()
Set up an option parser.
out2file(output, fname)
Write the results to a file.
parse_options(parser, search_list)
Return a new list, removing certian directory names from that list.
Also return the outbound filename.
process_out(results, meta)
Print the results to screen.