Hi Andreas,
me again :-)
Welcome ;)
I upload a a file 'README.rst' using cadaver and BaseX creates a collection 'README' instead of a resource:
This was indeed a deliberate decision: With BaseX you'll find databases on top level – and a resource cannot be stored outside a database. Instead, a new database will be created, and the file will be stored in that database.
In the past, we already wondered if we shouldn't disallow users to copy files on root level instead of automagically creating a new database. However, some tests indicated that this behavior wouldn't be 100% intuitive neither.
Hope this helps? Christian
dav:/webdav/> put README.rst Uploading README.rst to `/webdav/README.rst': Progress: [=============================>] 100.0% of 2772 bytes succeeded. dav:/webdav/> ls Listing collection `/webdav/': succeeded. Coll: BaseX80 0 Feb 15 17:20 Coll: README 0 Feb 22 17:34 Coll: all 0 Feb 22 17:22 Coll: lib 0 Feb 15 17:21 Coll: my-onkopedia 0 Feb 15 17:24 Coll: onkopedia-p 0 Feb 15 17:32 Coll: onkopedia 0 Feb 21 16:00 Coll: scripts 0 Feb 20 20:25 dav:/webdav/>
I assume that resources should be allowed within the root folder.
Andreas -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iQGUBAEBAgAGBQJU6gVpAAoJEADcfz7u4AZjF64LwLGdkp7w+Dwniz/8MYGlWX+R ngO1Dwmcev75PN9I9KQzMEYlQxzVLajYP9DoCAsziBgSLqZZJQyxInhh1KdoZvPO od4ESTCVhAGbnSjws4tiZ0gUFMkrkf8yJu+JgRGBBpOskon3/9HjbnBoKJIzQTsU /6Cm81gszNy12lkDDqoEjGtXzCnu1bl5vHrLESmoQ/Mrb1lx/qAXOrcpnR7RKJSu aG0CcmhZKRWZK+ipwT6FaV7HJDZYu/twOnpES8howKDmJk1e03HW6lmf54Wwo4MM hcvjYmN+PnFzNj/WKAZJHWr+6lwWdiUp3EkTX2t4GqfyeMfflaX1J/prhc/FKGIA nWF+qQKh6ogtxpHhiWIizxDfN3ppiB6Nz1f51m1ePB+ea3qg3cVghqw5KQLWncwK nXSHwcrUHzbIqvyawFTyhTQLdTs/CIEniT1fFB4u572blnNHHw2P8LqftEOovyZP NATSv1cw3LxPYrLxK+RL1Z3yIcU104Q= =cI7q -----END PGP SIGNATURE-----