From 34dfb49b719c948e709a4639b4af2c5cb73b3887 Mon Sep 17 00:00:00 2001 From: Ramires Viana <59319979+ramiresviana@users.noreply.github.com> Date: Mon, 20 Jul 2020 17:37:38 +0000 Subject: [PATCH] fix: path separator inconsistency on rename --- http/resource.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/http/resource.go b/http/resource.go index 20376968..7ddbbd07 100644 --- a/http/resource.go +++ b/http/resource.go @@ -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++ } }