public class FileHelper extends Object
| Modifier and Type | Method and Description |
|---|---|
static boolean |
areInSync(Path source,
Path destination) |
static void |
delete(Path path)
Deletes a file.
|
static void |
synchronize(Path source,
Path destination,
boolean smart) |
static void |
tryDelete(Path path)
Attempts to delete a file.
|
public static boolean areInSync(Path source, Path destination) throws IOException
IOExceptionpublic static void synchronize(Path source, Path destination, boolean smart) throws IOException
IOExceptionpublic static void delete(Path path) throws IOException
path - the file or directory to be deletedIOException - if it wasn't possible to delete all content.public static void tryDelete(Path path) throws IOException
path - the file or directory to be deletedIOException - on unexpected io errorsCopyright © 2006–2017 Hibernate. All rights reserved.