public final class FileUtils extends Object
Modifier and Type | Method and Description |
---|---|
static void |
copyFile(InputStream in,
OutputStream out) |
static boolean |
deleteContents(File fileOrDirectory) |
static boolean |
deleteContents(String fileOrDirectory) |
static boolean |
eraseFileOrDir(File fileOrDirectory) |
static boolean |
eraseFileOrDir(String fileOrDirectory) |
static boolean |
setPermissionRecursive(File fileOrDirectory,
boolean readable,
boolean writable) |
static File |
verifyDir(File dir) |
static File |
verifyDir(String dirPath) |
public static void copyFile(InputStream in, OutputStream out) throws IOException
IOException
public static boolean eraseFileOrDir(@NonNull String fileOrDirectory)
public static boolean eraseFileOrDir(@NonNull File fileOrDirectory)
public static boolean deleteContents(String fileOrDirectory)
public static boolean deleteContents(File fileOrDirectory)
public static boolean setPermissionRecursive(@NonNull File fileOrDirectory, boolean readable, boolean writable)