padenot/yadfig — pull request #1 by BenjBouv (2012-11-03 03:18:20+00:00)
Title: Feature: recursive processing of directories

Hi Paul,

TL;DR / Changelog
-----
- Code refactoring
- Recursive processing: if a directory contains other directories, each sub directory is analyzed and a yadfig page is made for each one.
- Index page, referencing all links to the sub directories pages
- Verbose mode

Usage example
----
```
yadfig -t "Example gallery" -r -d ./my_dir_containing_the_subdirs/ -b "/galeries/example/"
```
creates [this](http://benjb.gagahome.fr/galeries/example/)

Motivation
-----
I've seen your article on [isBullsh.it](http://www.isbullsh.it) and I was impressed by yadfig. However, my collection of photos is somewhat important and I didn't wanted to launch yadfig from every directory, then make an index for all these webpages. As a matter of fact, I've implemented a recursive filetree processing for this purpose.

So what?
------
In my opinion, this feature is interesting and doesn't contradict the simplicity of the program. Don't hesitate to accept this pull request, cherry-pick the only interesting commits or tell me "GTFO".

Benjamin