public class DirectoryUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static File[] |
getAllFilesExceptHistoryXmlFromDirectory(File directory)
Get all files the given directory contains, except the history xml in the root dir.
|
static boolean |
isEqual(Path directory,
Path compareDirectory,
boolean checkFileContent)
checks if the directory file lists are equal.
|
public static File[] getAllFilesExceptHistoryXmlFromDirectory(File directory) throws IOException
directory - the directory.IOException - if file walking fails.public static boolean isEqual(Path directory, Path compareDirectory, boolean checkFileContent) throws IOException
If checkFileContent is true, then also if the file content is equal
directory - the directorycompareDirectory - the directory to compare withcheckFileContent - also compare file contentIOException - if anything goes wrong comparing the directories.Copyright © 2016–2019. All rights reserved.