Bulk adding with "add" in client

Tuesday, 19 December 2017 · 2 messages
RC
Robert Crews19 Dec 2017 03:53 #

With a database created and opened, I can recursively bulk add the all the *.xml files in a directory called /opt/sources With this command

Quoted text · 1 line
> add /opt/sources

http://docs.basex.org/wiki/Commands#ADD

In the GUI, I can change the pattern to, for example, "*.dita*", to load all the *.dita and *.ditamap files instead of the *.xml files.

Is there a way I can define a glob pattern for bulk loads using the add command or some other command from the client?

Thanks, Robert

FE
Fabrice ETANCHAUD19 Dec 2017 09:36 #

Hi Robert,

CREATEFILTER may be the option you are looking for :

http://docs.basex.org/wiki/Options#CREATEFILTER

Best regards, Fabrice Etanchaud Cerfrance.pch

-----Message d'origine-----

Quoted text · Robert Crews · 11 lines
De : basex-talk-bounces at mailman.uni-konstanz.de [mailto:basex-talk-bounces at mailman.uni-konstanz.de] De la part de Robert Crews Envoyé : mardi 19 décembre 2017 03:54 À : basex-talk at mailman.uni-konstanz.de Objet : [basex-talk] Bulk adding with "add" in client With a database created and opened, I can recursively bulk add the all the *.xml files in a directory called /opt/sources With this command > add /opt/sources http://docs.basex.org/wiki/Commands#ADD In the GUI, I can change the pattern to, for example, "*.dita*", to load all the *.dita and *.ditamap files instead of the *.xml files. Is there a way I can define a glob pattern for bulk loads using the add command or some other command from the client? Thanks, Robert

⚡Generated with XQuery