mirror of
https://github.com/rclone/rclone.git
synced 2025-01-31 10:41:42 +01:00
0093e23e42
Fixes an issue on Windows where mounting the local filesystem in network mode failed when not using option --volname. Reason was that the volume name in network mode is a network share path in the basic UNC format, and characters that are invalid in regular file and directory names are also invalid in such a path. And the default volume name would typically include a '?', which is invalid, from the unc path of the local, e.g. "\\server\\? C Temp". The fix is to use an encoder to encode invalid characters such as '?' with the unicode equivalent, similar to how rclone encodes filesystem paths in normal operations, when mounting in network mode. Also performs some automatic cleanup of path separators, but in general, tries to be conservative on restrictions, and instead rely on --volname being set to something realistic. Existing strategy to replace the two characters ':' and '/' with space, regardless of mounting mode variant, was removed. For network mode the new approach handles these in a better way. Also the existing method did not apply at all when using the implicit network mode where volume names are taken from mountpath instead of volname option ("rclone mount remote:path/to/files \\cloud\remote"). For non-network mode they were not needed. Default volume names, when not specified by user, will be different with this change. See: #6234 |
||
---|---|---|
.. | ||
arch.go | ||
fs.go | ||
mount_brew.go | ||
mount_test.go | ||
mount_unsupported.go | ||
mount.go | ||
mountpoint_other.go | ||
mountpoint_windows.go |