mirror of https://github.com/databricks/cli.git
Close python wheel directory file descriptor after read (#753)
## Changes Close python wheel directory file descriptor after read
This commit is contained in:
parent
67af171a68
commit
368321d07d
|
@ -30,6 +30,8 @@ func FindFilesWithSuffixInPath(dir, suffix string) []string {
|
|||
log.Debugf(context.Background(), "open dir %s: %s", dir, err)
|
||||
return nil
|
||||
}
|
||||
defer f.Close()
|
||||
|
||||
entries, err := f.ReadDir(0)
|
||||
if err != nil {
|
||||
log.Debugf(context.Background(), "read dir %s: %s", dir, err)
|
||||
|
|
Loading…
Reference in New Issue