fix: path separator inconsistency on rename

This commit is contained in:
Ramires Viana 2020-07-20 17:37:38 +00:00
parent 0b0a704d44
commit 34dfb49b71

View File

@ -168,7 +168,7 @@ var resourcePatchHandler = withUser(func(w http.ResponseWriter, r *http.Request,
break
}
new := fmt.Sprintf("%s(%d)%s", base, counter, ext)
dst = filepath.Join(dir, new)
dst = filepath.ToSlash(dir) + new
counter++
}
}