This utility program takes as input a folder, scans it for all files and sort it from the more recent to the oldest one. It generates an html file pointing to files, sorted in a timeline manner.
Updated: December 29 2019
champ4.lisp
: stable version
Just load the file and follow instructions.
Tested under sbcl/debian and cmucl/debian.
champ2.lisp
was portable Linux/Windows but champ4.lisp
was not tested under Windows.
- Use macros to generate html in an easier way.
- Optimize.
champ5.lisp
: write the html page in memory before dumping it in a file.
- Port for Windows.
The v4 version is based on the following design choices:
- The basic recursion explores the tree of folders and aggregates it in a list of files;
- Used type (string):
(namestring (car (directory XX)))
;
- Used type (string):
- Another loop creates the datetime tags and store it in a list:
((second-nb1 namestring1) (second-nb2 namestring2) ... (second-nbi namestringi))
;
- Then the list is sorted based on timestamps;
- Then the html is generated (with the index in parallel).