mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-10-21 23:17:23 +08:00
shell: add "remote.meta.sync"
This commit is contained in:
@@ -31,10 +31,14 @@ func (fp FullPath) Name() string {
|
||||
|
||||
func (fp FullPath) Child(name string) FullPath {
|
||||
dir := string(fp)
|
||||
if strings.HasSuffix(dir, "/") {
|
||||
return FullPath(dir + name)
|
||||
noPrefix := name
|
||||
if strings.HasPrefix(name, "/") {
|
||||
noPrefix = name[1:]
|
||||
}
|
||||
return FullPath(dir + "/" + name)
|
||||
if strings.HasSuffix(dir, "/") {
|
||||
return FullPath(dir + noPrefix)
|
||||
}
|
||||
return FullPath(dir + "/" + noPrefix)
|
||||
}
|
||||
|
||||
func (fp FullPath) AsInode() uint64 {
|
||||
|
Reference in New Issue
Block a user