mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-11-08 12:56:13 +08:00
fix directory lookup nil
This commit is contained in:
@@ -55,6 +55,9 @@ func (c *commandFsMetaCat) Do(args []string, commandEnv *CommandEnv, writer io.W
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if respLookupEntry.Entry == nil {
|
||||
return fmt.Errorf("file not found: %s", path)
|
||||
}
|
||||
|
||||
m := jsonpb.Marshaler{
|
||||
EmitDefaults: true,
|
||||
|
||||
Reference in New Issue
Block a user