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-----
De : [email protected] 
[mailto:[email protected]] De la part de 
[email protected]
Envoyé : vendredi 11 décembre 2015 06:19
À : [email protected]
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 

Reply via email to