| ||
-- Dark Helmet and Lone Star, Spaceballs |
DirMaster is a class that's able to handle dirs and to store in memory their contents.
Main features of this class are:
Ease of use: to scan a dir, simply call afc_dirmaster_scan_dir() function.
Configurability: you can decide what info to retrieve and how.
Sort can be done on different fields. See afc_dirmaster_sort()
You can even add dir entries by hand.
To inizialize a new instance, simply call afc_dirmaster_new() and to destroy it, call the afc_dirmaster_delete()
To browse an already afc_dirmaster_scan_dir() scanned dir, you can use the usual APIs for double linked list, with calls like afc_dirmaster_first() afc_dirmaster_succ() and so on