mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-09-19 17:54:37 +08:00
minor
This commit is contained in:
@@ -72,8 +72,8 @@ func (fs *FilerServer) StreamRenameEntry(req *filer_pb.StreamRenameEntryRequest,
|
|||||||
return fmt.Errorf("%s/%s not found: %v", req.OldDirectory, req.OldName, err)
|
return fmt.Errorf("%s/%s not found: %v", req.OldDirectory, req.OldName, err)
|
||||||
}
|
}
|
||||||
|
|
||||||
// follow https://pubs.opengroup.org/onlinepubs/000095399/functions/rename.html
|
|
||||||
if oldEntry.IsDirectory() {
|
if oldEntry.IsDirectory() {
|
||||||
|
// follow https://pubs.opengroup.org/onlinepubs/000095399/functions/rename.html
|
||||||
targetDir := newParent.Child(req.NewName)
|
targetDir := newParent.Child(req.NewName)
|
||||||
newEntry, err := fs.filer.FindEntry(ctx, targetDir)
|
newEntry, err := fs.filer.FindEntry(ctx, targetDir)
|
||||||
if err == nil {
|
if err == nil {
|
||||||
|
Reference in New Issue
Block a user