mirror of
https://github.com/rclone/rclone.git
synced 2025-02-01 13:16:34 +08: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.Replace(VolumeName, "/", " ", -1)
|
VolumeName = strings.Replace(VolumeName, "/", " ", -1)
|
||||||
VolumeName = strings.TrimSpace(VolumeName)
|
VolumeName = strings.TrimSpace(VolumeName)
|
||||||
|
if runtime.GOOS == "windows" && len(VolumeName) > 32 {
|
||||||
|
VolumeName = VolumeName[:32]
|
||||||
|
}
|
||||||
|
|
||||||
// Start background task if --background is specified
|
// Start background task if --background is specified
|
||||||
if Daemon {
|
if Daemon {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user