public class FileUtils
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static void |
createDirectory(java.nio.file.Path path) |
static void |
createDirectory(java.lang.String path) |
static void |
createFile(java.nio.file.Path file) |
static void |
createFile(java.lang.String path) |
static void |
deleteDirectory(java.lang.String directory) |
static void |
deleteFile(java.nio.file.Path file) |
static void |
deleteFile(java.lang.String file) |
static boolean |
fileExists(java.nio.file.Path file) |
static boolean |
fileExists(java.lang.String file) |
static java.io.File |
getCurrentJarFolder(java.lang.Class c) |
static boolean |
isDirectory(java.nio.file.Path dir) |
static boolean |
isDirectory(java.lang.String directoryPath) |
static void |
main(java.lang.String[] args) |
public static void createFile(java.lang.String path)
public static void createFile(java.nio.file.Path file)
public static void createDirectory(java.lang.String path)
public static void createDirectory(java.nio.file.Path path)
public static void deleteFile(java.lang.String file)
public static void deleteFile(java.nio.file.Path file)
public static void deleteDirectory(java.lang.String directory)
public static boolean fileExists(java.nio.file.Path file)
public static boolean fileExists(java.lang.String file)
public static boolean isDirectory(java.lang.String directoryPath)
public static boolean isDirectory(java.nio.file.Path dir)
public static java.io.File getCurrentJarFolder(java.lang.Class c)
public static void main(java.lang.String[] args)