rexzhang / asgi-webdav

An asynchronous WebDAV server implementation, Support multi-provider, multi-account and permission control.
https://rexzhang.github.io/asgi-webdav/
MIT License
75 stars 14 forks source link

macOS: DS_Store files #13

Closed plashenkov closed 2 years ago

plashenkov commented 2 years ago

As you know, macOS Finder creates garbage DS_Store files by default. Currently, ASGI WebDAV Server doesn't show them in web interface, but files are actually created. So, Windows users will see them.

Is it possible or is it a good idea at all to add some option to prevent these files from being created? I.e. when a client creates any other files and folder, the server allows this, but when it tries to create DS_Store files — it prevents.

P.S. Yes, there is an option in macOS to disable DS_Store files creation in network stores, but we cannot force all users to turn this option on. So, the server capability to handle this would be really nice.

rexzhang commented 2 years ago

Maybe, Filter the file list based on user-agent in PROPFIND method? like GET method. Caesar's to Caesar ;-)

Of course, It is option in the config file

rexzhang commented 2 years ago

231c233df58456e81b7264a65c1bce7d37047d19, done

plashenkov commented 2 years ago

Thank you!

rexzhang commented 2 years ago

release