Dear Devin,

Devin Bougie ha scritto:
 Hi, All.  I would greatly appreciate any recommended ways of finding
 the total number of files in a given collection.
You can do this with the bibdocfile CLI tool.

$ sudo -u www-data /opt/invenio/bin/bibdocfile --get-disk-usage --collection "Articles"

this will give you an estimation of the size for the "Articles" collection.
If you really want to know the number of files it's just a little bit more complex.

$ sudo -u www-data /opt/invenio/bin/bibdocfile --get-info --collection "Articles" | grep checksum | wc -l

(it's just a trick. There is one "checksum" line per file in the output, so with "wc -l" you can then just count the number of lines.

Cheers,
       Samuele
--
Samuele Kaplun
Invenio Developer ** <http://invenio-software.org/>

Reply via email to