entries, err := os.ReadDir(path) reads the entire directory contents in memory and there will be memory spike during reset.
Do you know how many files would there be? It is ok for now, but we just need to be aware if there would be too many files or not.
Originally posted by @leninmehedy in #353 (comment)