public class FileUtil
extends java.lang.Object
Constructor and Description |
---|
FileUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
copyDir(java.io.File srcDir,
java.io.File destDir) |
static void |
copyTo(java.io.InputStream in,
java.io.File dest) |
static Maybe<java.lang.String> |
getFilePermissions(java.io.File file)
This utility will be deleted when we move to Java 7
|
static void |
moveDir(java.io.File srcDir,
java.io.File destDir) |
static void |
setFilePermissionsTo600(java.io.File file) |
static void |
setFilePermissionsTo700(java.io.File file) |
public static void setFilePermissionsTo700(java.io.File file) throws java.io.IOException
java.io.IOException
public static void setFilePermissionsTo600(java.io.File file) throws java.io.IOException
java.io.IOException
public static void moveDir(java.io.File srcDir, java.io.File destDir) throws java.io.IOException, java.lang.InterruptedException
java.io.IOException
java.lang.InterruptedException
public static void copyDir(java.io.File srcDir, java.io.File destDir) throws java.io.IOException, java.lang.InterruptedException
java.io.IOException
java.lang.InterruptedException
@Beta public static Maybe<java.lang.String> getFilePermissions(java.io.File file)
@Beta public static void copyTo(java.io.InputStream in, java.io.File dest)