Class FileUtils
- java.lang.Object
-
- com.couchbase.lite.internal.utils.FileUtils
-
public final class FileUtils extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method 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)
-
-
-
Method Detail
-
copyFile
public static void copyFile(InputStream in, OutputStream out) throws IOException
- Throws:
IOException
-
eraseFileOrDir
public static boolean eraseFileOrDir(@NonNull String fileOrDirectory)
-
eraseFileOrDir
public static boolean eraseFileOrDir(@NonNull File fileOrDirectory)
-
deleteContents
public static boolean deleteContents(String fileOrDirectory)
-
deleteContents
public static boolean deleteContents(File fileOrDirectory)
-
setPermissionRecursive
public static boolean setPermissionRecursive(@NonNull File fileOrDirectory, boolean readable, boolean writable)
-
-