tentwentyfour / nextcloud-link

Javascript/Typescript client that communicates with Nextcloud's WebDAV and OCS APIs
MIT License
56 stars 7 forks source link

How to handle "#" char #20

Open CedricBad opened 4 years ago

CedricBad commented 4 years ago

First of all thank you for your nice library.

I have a folder which name contains a #, and when I try to get the files it contains using the getFolderFileDetails method, nothing is returned.

Also when I try to create file inside it using the put method, I got a 409 error Conflict. I've tried to replace the # in the path by a %23, but it's not working either.

When doing the same directly by nextcloud interface, it works fine.

At last, if the # char is at the begining of my folder, using getFolderFileDetails will return me all documents placed in the same directory as my folder.

floriansimon1 commented 4 years ago

That kind of bug is super annoying to fix. Sometimes, the problem is in the webdav library we use. Would you have time to try using the webdav-client directly and tell us if the error occurs there?