Question about baseX add "/path/to/filesystem/directory"

Friday, 11 December 2015 · 2 messages
A
ansel.jm11 Dec 2015 06:19 #
Hello I'm experiencing a trouble with the add "/path/to/filesystem/directory" on a large directory structure with thousands of files. The result is a strange error :
Quoted text · 1 line
> add "/data/PARTAGE/DOSSIERS EC&T/PC"
"Configurations2/accelerator/current.xml" (Line 1): No text allowed before root element. And in the directory /data/PARTAGE/DOSSIERS EC&T/PC, no Configurations2 directory... I think a file is having a problem but with a thousand of files, how to know which of them ? On another directory, the add function works but finds xml files that aren't in the directory structure (find . -name "xxx" doesn't find them as basex finds !!!)... Is the "add function" fragile on a directory ? Many thanks in advance JMA
EF
Etanchaud Fabrice11 Dec 2015 09:43 #
Hi JMA, Did you try setting SKIPCORRUPT to true ? Here is an example : Command: SET SKIPCORRUPT true Command: CREATE DB test C:/Data/adresses/test Result: Skipped: - C:/Data/adresses/test/communes (2).xml Database 'test' created in 1806.47 ms. So you will see the list of skipped files in the output stream. May your sub directories contain archives ? That could explain these invisible files. I never had problem with the ADD command even on huge directory structures. Bonjour de Vendée Cordialement, Fabrice -----Message d'origine-----
Quoted text · ansel.jm at free.fr · 15 lines
De : basex-talk-bounces at mailman.uni-konstanz.de [mailto:basex-talk-bounces at mailman.uni-konstanz.de] De la part de ansel.jm at free.fr Envoyé : vendredi 11 décembre 2015 06:19 À : basex-talk at mailman.uni-konstanz.de Objet : [basex-talk] Question about baseX add "/path/to/filesystem/directory" Hello I'm experiencing a trouble with the add "/path/to/filesystem/directory" on a large directory structure with thousands of files. The result is a strange error : > add "/data/PARTAGE/DOSSIERS EC&T/PC" "Configurations2/accelerator/current.xml" (Line 1): No text allowed before root element. And in the directory /data/PARTAGE/DOSSIERS EC&T/PC, no Configurations2 directory... I think a file is having a problem but with a thousand of files, how to know which of them ? On another directory, the add function works but finds xml files that aren't in the directory structure (find . -name "xxx" doesn't find them as basex finds !!!)... Is the "add function" fragile on a directory ? Many thanks in advance JMA

⚡Generated with XQuery