← Back to team overview

zim-wiki team mailing list archive

python script to document a folder structure

 

I've just finished a very small python script that - given as argument a given folder X - will create a Zim tree "mapped" on it. By this I mean that for each subfolder of X there will exist a corresponding zim node. I'm using it in crontab running it to constantly checking X, so that if any subtree is added/deleted to/from X, the zim hierarchy of pages will correspondingly be updated. As I mentioned in past posts, I use it to extensively document my very large work directory (X), inserting comments/images in any node of the zim wiki.

I dont know if it can be of interest to others (and I'd like to mention that I learned python just 1 week ago, please be kind to me...), so let me know!

alessandro


--

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/  Dr.Alessandro Magni
\        Electromagnetics Division
/        INRiM Strada delle Cacce 91, 10135 Torino (ITALIA)
\        Email magni@xxxxxxxx
/        Tel: 0039-011-3919821  Fax: 0039-011-3919834
\        URL http://www.inrim.it/~magni
/ Our business in life is not to succeed but to continue to fail
\ in high spirits.  -- Robert Louis Stevenson
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~