see https://github.com/facebook/buck/blob/5444652af489563ddaf595a634341dd14fd41399/src/com/facebook/buck/features/python/MovePythonWhlDataStep.java#L59
Files.list will opendir and we should close it.
try(Stream list = Files.list()) is the most common practice