Github user OuYangLiang commented on the issue: https://github.com/apache/zookeeper/pull/414 I prefer to the simplest way. Make a check while iterating files in the getLogFiles method. `sortDataDir ` is a little confusion, I'll take a deep look to see if there's better approach.
---