From 28e87017f2f7567d4dbb5217f6f74f1c9d1a9e74 Mon Sep 17 00:00:00 2001 From: qydysky Date: Tue, 25 Feb 2025 07:36:21 +0000 Subject: [PATCH] 1 --- file/FileWR.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/file/FileWR.go b/file/FileWR.go index f394213..9afe1c5 100644 --- a/file/FileWR.go +++ b/file/FileWR.go @@ -855,7 +855,11 @@ func (t *File) newPath(path string, mode fs.FileMode) { if n == len(rawPs)-1 { break } - rawPath += string(os.PathSeparator) + p + + if rawPath != "" { + rawPath += string(os.PathSeparator) + } + rawPath += p fos, e := t.getOs() if e != nil { -- 2.39.2