mirror of
https://github.com/rclone/rclone.git
synced 2025-12-15 15:53:41 +00:00
mount,cmount: Add --volname flag and remove special chars from it #2287
Before this change rclone would set the volume name from the remote:path normally. However this has `:` and `/` in which make it difficult to use in macOS. Now rclone will remove the special characters and replace them with spaces. It also allows the volume name to be set with the --volname flag.
This commit is contained in:
@@ -28,7 +28,7 @@ func mountOptions(device string) (options []fuse.MountOption) {
|
||||
options = []fuse.MountOption{
|
||||
fuse.MaxReadahead(uint32(mountlib.MaxReadAhead)),
|
||||
fuse.Subtype("rclone"),
|
||||
fuse.FSName(device), fuse.VolumeName(device),
|
||||
fuse.FSName(device), fuse.VolumeName(mountlib.VolumeName),
|
||||
fuse.NoAppleDouble(),
|
||||
fuse.NoAppleXattr(),
|
||||
|
||||
|
||||
Reference in New Issue
Block a user