Hi everybody,
with Jean-Yves and Tony we were thinking about directly using the current
filesystem structure for the refextract job. Tony says his tool work on main
documents only.
Right now, the structure of the files/g0..gn folders is that every gn folder
contains a list of subfolders named after the bibdoc id, and each subfolder
contains then the real documents, and a secret hidden file: ".recid", which,
as you can guess, contains the recid to which the bibdoc belongs.
Since refextract should run on main files only, and since maybe this feature
could be used in the future for other purposes, what do you think if a new
hidden file is created, named ".type" which contains the content of the
bibrec_bibdoc.type column, i.e. the kind of bibdoc (either Main or
Additional). I know this is a replication of information, but could be very
useful for tools that can avoid to depend on the database.
What do you think? Could I add such a feature (even to run on production...)
Best regards,
Samuele