By following the instructions in
http://dotcms.com/docs/latest/upload-and-edit-via-webdav#Linux, I've created a webdav mount on my local using davfs2.
I've also made the davfs2.conf changes as mentioned there.
Now when I copy a simple file (a.txt) from another local directory to the webdav mount, that file turns into an empty directory with the same name as the file (a.txt).
cp myuser/localdirectory/a.txt myuser/webdav/, and when I go to myuser/webdav/, I see an empty directory called a.txt.
When I copy the same file, from the same location, to another local directory, it works perfectly.
This issue happens only when anything is copied/moved to the webdav mount.
Please help.