public class FileUtil extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
FileUtil.SnapshotCopier |
| Modifier and Type | Field and Description |
|---|---|
static org.slf4j.Logger |
LOG |
| Constructor and Description |
|---|
FileUtil() |
| Modifier and Type | Method and Description |
|---|---|
static void |
closeSilently(Closeable out) |
static void |
copySnapshot(File runtimeDirectory,
File snapshotDirectory) |
static void |
deleteFile(File file) |
static void |
deleteFolder(String path) |
static long |
getAvailableSpace(File logLocation) |
static void |
moveFile(String source,
String target,
CopyOption... options) |
static FileChannel |
openChannel(String filename,
boolean create) |
static void |
replace(Path src,
Path dest)
Overwrites file at dest with src.
|
public static void closeSilently(Closeable out)
public static void deleteFolder(String path) throws IOException
IOExceptionpublic static long getAvailableSpace(File logLocation)
public static FileChannel openChannel(String filename, boolean create)
public static void moveFile(String source, String target, CopyOption... options)
public static void replace(Path src, Path dest) throws IOException
src - file to movedest - file to overwrite (if existing)IOException - see Files.move(Path, Path, CopyOption...)public static void deleteFile(File file)
Copyright © 2017–2019 camunda services GmbH. All rights reserved.