aboutsummaryrefslogtreecommitdiff
path: root/weed/util/fullpath.go
diff options
context:
space:
mode:
authorChris Lu <chrislusf@users.noreply.github.com>2025-07-20 13:28:17 -0700
committerGitHub <noreply@github.com>2025-07-20 13:28:17 -0700
commit85036936d1e1faaaa9d3002372f549fc98a1f740 (patch)
tree11ef308a241c969181b95a5769e5a488a4daac2a /weed/util/fullpath.go
parent41b5bac0634ddebde5aa148637c12b0f27d47b50 (diff)
downloadseaweedfs-85036936d1e1faaaa9d3002372f549fc98a1f740.tar.xz
seaweedfs-85036936d1e1faaaa9d3002372f549fc98a1f740.zip
Read write directory object (#7003)
* read directory object * address comments * address comments * name should not have "/" prefix * fix compilation * refactor
Diffstat (limited to 'weed/util/fullpath.go')
-rw-r--r--weed/util/fullpath.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/weed/util/fullpath.go b/weed/util/fullpath.go
index 2259523af..c145919da 100644
--- a/weed/util/fullpath.go
+++ b/weed/util/fullpath.go
@@ -8,6 +8,7 @@ import (
type FullPath string
func NewFullPath(dir, name string) FullPath {
+ name = strings.TrimSuffix(name, "/")
return FullPath(dir).Child(name)
}