Support connecting to unix sockets

I have some HTTP/WebDAV servers listening on unix sockets, and want to use rclone sync to copy to/from them.

It looks like fshttp does not support unix:// scheme, and also always tries to extend a / to the filename:

RCLONE_WEBDAV_URL=unix:///path/to/some.sock rclone sync mydir :webdav:
[…]
2024/05/24 10:43:44 Failed to sync: couldn't list files: Propfind "unix:///path/to/some.sock/": unsupported protocol scheme "unix"

I'm more and more convinced this should become a separate parameter, similar to how curl has a --unix-socket argument, yet still allows using the regular positional URL argument to specify host, subpath etc.

Implemented in webdav: introduce unix_socket_path by flokli · Pull Request #7865 · rclone/rclone · GitHub

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.