This commit is contained in:
Chris Lu 2021-08-09 14:37:34 -07:00
parent a6be2520c9
commit 402315f117
3 changed files with 4 additions and 4 deletions

View file

@ -94,7 +94,7 @@ func recursivelyTraverseDirectory(filerClient filer_pb.FilerClient, dirPath util
if err := recursivelyTraverseDirectory(filerClient, subDir, visitEntry); err != nil {
return err
}
}else {
} else {
if !visitEntry(dirPath, entry) {
return nil
}

View file

@ -246,4 +246,4 @@ func doSaveRemoteEntry(client filer_pb.SeaweedFilerClient, localDir string, exis
return updateErr
}
return nil
}
}

View file

@ -83,8 +83,8 @@ func (c *commandRemoteUncache) uncacheContentData(commandEnv *CommandEnv, writer
err := commandEnv.WithFilerClient(func(client filer_pb.SeaweedFilerClient) error {
_, updateErr := client.UpdateEntry(context.Background(), &filer_pb.UpdateEntryRequest{
Directory: string(dir),
Entry: entry,
Directory: string(dir),
Entry: entry,
})
return updateErr
})