mirror of
https://github.com/rclone/rclone.git
synced 2025-11-29 05:47:23 +02:00
build: fix gocritic lint issue assignop
This commit is contained in:
committed by
Nick Craig-Wood
parent
59501fcdb6
commit
c6d3714e73
@@ -42,7 +42,7 @@ func MkdirAll(path string, perm os.FileMode) error {
|
||||
// In extended-length form without trailing slash ("\\?\C:"), os.Stat
|
||||
// and os.Mkdir both fails. With trailing slash ("\\?\C:\") works,
|
||||
// and regular paths with or without it ("C:" and "C:\") both works.
|
||||
path = path + string(os.PathSeparator)
|
||||
path += string(os.PathSeparator)
|
||||
} else {
|
||||
// See if there is a parent to be created first.
|
||||
// Not when path refer to a drive's root directory, because we don't
|
||||
|
||||
Reference in New Issue
Block a user