modified FileUtils.java