public class FileUtils
extends java.lang.Object
Modifier | Constructor and Description |
---|---|
protected |
FileUtils() |
Modifier and Type | Method and Description |
---|---|
static void |
copyDirectoryWithoutLock(java.nio.file.Path src,
java.nio.file.Path dst) |
static void |
copyFileWithoutLock(java.nio.file.Path src,
java.nio.file.Path dst) |
static void |
createEmptyFile(java.nio.file.Path path) |
static java.nio.file.Path |
createTempFilePath(java.nio.file.Path originalPath) |
static boolean |
deleteFile(BlueWriteLock<java.nio.file.Path> writeLock) |
static void |
ensureDirectoryExists(java.io.File file) |
static void |
ensureFileExists(java.nio.file.Path path) |
static java.util.List<java.io.File> |
getFolderContents(java.io.File folder) |
static java.util.List<java.io.File> |
getFolderContents(java.io.File folder,
java.io.FileFilter filter) |
static java.util.List<java.io.File> |
getFolderContents(java.nio.file.Path path,
java.lang.String suffix) |
static boolean |
isTempFile(java.io.File file) |
static void |
moveFile(java.nio.file.Path src,
BlueWriteLock<java.nio.file.Path> lock) |
static void |
moveWithoutLock(java.nio.file.Path src,
java.nio.file.Path dst) |
public static java.util.List<java.io.File> getFolderContents(java.io.File folder)
public static java.util.List<java.io.File> getFolderContents(java.io.File folder, java.io.FileFilter filter)
public static java.util.List<java.io.File> getFolderContents(java.nio.file.Path path, java.lang.String suffix)
public static void ensureFileExists(java.nio.file.Path path) throws BlueDbException
BlueDbException
public static void createEmptyFile(java.nio.file.Path path) throws BlueDbException
BlueDbException
public static void ensureDirectoryExists(java.io.File file)
public static java.nio.file.Path createTempFilePath(java.nio.file.Path originalPath)
public static boolean isTempFile(java.io.File file)
public static void moveFile(java.nio.file.Path src, BlueWriteLock<java.nio.file.Path> lock) throws BlueDbException
BlueDbException
public static void moveWithoutLock(java.nio.file.Path src, java.nio.file.Path dst) throws BlueDbException
BlueDbException
public static void copyFileWithoutLock(java.nio.file.Path src, java.nio.file.Path dst) throws BlueDbException
BlueDbException
public static void copyDirectoryWithoutLock(java.nio.file.Path src, java.nio.file.Path dst) throws BlueDbException
BlueDbException
public static boolean deleteFile(BlueWriteLock<java.nio.file.Path> writeLock)