Hi Dirk,
sounds like a reasonable feature request to me. To be most flexible, I would suggest to allow regex in the input path. Christian, would do you think?
Yes, this could be a viable option. Do you already have a concrete idea how you would do this? In Saxon, for example, a query string can be attached to the actual path [1].
Looking forward to more suggestions, Christian
[1] http://www.xmlplease.com/collection
In the meantime, you can already do the same thing using XQuery instead of database commands. Something like
for $f in file:list('your-directory') where not(starts-with(file:name($f), '.')) return db:add("DB", $f)
should emit adding files with a starting dot.
Cheers, Dirk On 11/02/2014 06:12 PM, Pieter Masereeuw wrote:
Hi!
It would be nice if there were a feature that basex could skip certain directories during the import. Now I have great trouble to remove (and later restore) all .svn-folders (Subversion) because I don't want them to be imported when I create a database.
Perhaps this is already a feature, but then I could not find it. In that case, perhaps a more conspicuous place in the documentation would be a good idea.
Thank you for an excellent product!
Pieter Masereeuw
-- Dirk Kirsten, BaseX GmbH, http://basex.org |-- Firmensitz: Blarerstrasse 56, 78462 Konstanz |-- Registergericht Freiburg, HRB: 708285, Geschäftsführer: | Dr. Christian Grün, Dr. Alexander Holupirek, Michael Seiferle `-- Phone: 0049 7531 28 28 676, Fax: 0049 7531 20 05 22