zyronix / auto-sub

Automatically exported from code.google.com/p/auto-sub
0 stars 0 forks source link

Add option to skip hidden directories #179

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Add an option to skip hidden directories for searching. For instance under 
Linux, just skip all directory trees with names that start with a dot, for 
instance .AppleDouble.

The attached patch-file does that.

Original issue reported on code.google.com by rippied...@gmail.com on 2 Mar 2013 at 2:29

GoogleCodeExporter commented 9 years ago
The changes are:
- Added the in the config-section an extra parameter skiphiddendirs
- Added the config-option in the config-template and in WebServer.py, so it can 
be changed in the web interface 
- removed the hidden directories from the os.walk()-output by following the 
example on http://www.gossamer-threads.com/lists/python/python/899232

Original comment by rippied...@gmail.com on 2 Mar 2013 at 2:38

GoogleCodeExporter commented 9 years ago
There was a slight bug in the patch that caused it to skip every directory if 
the option was set to enabled (continue-statement in the extra if-statement).

The attached file is the new (working) patch.

Original comment by rippied...@gmail.com on 9 Mar 2013 at 8:56

Attachments:

GoogleCodeExporter commented 9 years ago
Thanks for the patch!

Original comment by romke.va...@gmail.com on 16 Apr 2013 at 8:24

GoogleCodeExporter commented 9 years ago
This issue was closed by revision 33609b5d2c52.

Original comment by romke.va...@gmail.com on 18 Apr 2013 at 3:33