public abstract class FileUtils
extends java.lang.Object
构造器和说明 |
---|
FileUtils() |
限定符和类型 | 方法和说明 |
---|---|
static void |
removeDuplicatesFromOutputDirectory(java.io.File outputDirectory,
java.io.File originDirectory)
Utility to remove duplicate files from an "output" directory if they already exist
in an "origin".
|
static java.lang.String |
sha1Hash(java.io.File file)
Generate a SHA.1 Hash for a given file.
|
public static void removeDuplicatesFromOutputDirectory(java.io.File outputDirectory, java.io.File originDirectory)
outputDirectory
- the output directoryoriginDirectory
- the origin directorypublic static java.lang.String sha1Hash(java.io.File file) throws java.io.IOException
file
- the file to hashjava.io.IOException
- if the file cannot be read