Since we have multiple Jira's in trunk for common and hdfs, I am creating another jira for this issue.
This patch addresses the following:
1. Provides FileUtil API for list and listFiles which throws IOException for null cases.
2. Replaces most of the code where JDK file API with FileUtil API.