Package org.apache.rat.utils
Class FileUtils
java.lang.Object
org.apache.rat.utils.FileUtils
A set of utilities to help process files.
-
Method Summary
-
Method Details
-
mkDir
Creates a directory if it does not exist.- Parameters:
dir- the directory to make.
-
delete
Deletes a file if it exists (ignoring all IO-related exceptions).- Parameters:
file- the file to delete.
-
writeFile
Writes a test file.- Parameters:
dir- The directory to write the file in.name- the name of the file.lines- the lines to write into the file.- Returns:
- the new File.
-
writeFile
Writes a test file.- Parameters:
dir- The directory to write the file in.name- the name of the file.lines- the lines to write into the file.- Returns:
- the new File.
-
writeFile
Writes a text file containing the name of the file.- Parameters:
dir- The directory to write the file into.name- the name of the file.- Returns:
- the new file.
-