public abstract class FileUtils extends Object
Constructor and Description |
---|
FileUtils() |
Modifier and Type | Method and Description |
---|---|
static void |
removeDuplicatesFromOutputDirectory(File outputDirectory,
File originDirectory)
Utility to remove duplicate files from an "output" directory if they already exist
in an "origin".
|
static String |
sha1Hash(File file)
Generate a SHA.1 Hash for a given file.
|
public static void removeDuplicatesFromOutputDirectory(File outputDirectory, File originDirectory)
outputDirectory
- the output directoryoriginDirectory
- the origin directorypublic static String sha1Hash(File file) throws IOException
file
- the file to hashIOException
- if the file cannot be readCopyright © 2019 Pivotal Software, Inc.. All rights reserved.