mirror of
https://github.com/rclone/rclone.git
synced 2024-11-22 16:34:30 +01:00
mount: fix fail because of too long volume name - fixes #4026
This commit is contained in:
parent
fef2c6bf7a
commit
6ff0bb825e
@ -322,6 +322,9 @@ be copied to the vfs cache before opening with --vfs-cache-mode full.
|
||||
VolumeName = strings.Replace(VolumeName, ":", " ", -1)
|
||||
VolumeName = strings.Replace(VolumeName, "/", " ", -1)
|
||||
VolumeName = strings.TrimSpace(VolumeName)
|
||||
if runtime.GOOS == "windows" && len(VolumeName) > 32 {
|
||||
VolumeName = VolumeName[:32]
|
||||
}
|
||||
|
||||
// Start background task if --background is specified
|
||||
if Daemon {
|
||||
|
Loading…
Reference in New Issue
Block a user