public class ElementsFileUtils extends Object
Modifier and Type | Field and Description |
---|---|
static String |
copyright |
static org.slf4j.Logger |
logger |
Constructor and Description |
---|
ElementsFileUtils() |
Modifier and Type | Method and Description |
---|---|
static boolean |
chmod(File file,
String perms) |
static boolean |
ensureDirectoryExists(File file) |
static boolean |
ensureDirectoryExistsAndWarnIfNotWritable(File file) |
static boolean |
ensureDirectoryExistsAndWritable(File file) |
static String |
getRelativePath(File ancestor,
File file) |
static String |
getRelativePath(File ancestor,
File file,
String separator) |
static void |
moveFileSafely(File tempFile,
String fileName) |
static boolean |
safeMkdir(File detailDirectory) |
static boolean |
safeMkdirs(File detailDirectory) |
static boolean |
setReadable(File file,
boolean readable) |
static boolean |
setWritable(File file,
boolean writable) |
public static final String copyright
public static final org.slf4j.Logger logger
public static boolean ensureDirectoryExistsAndWritable(File file)
public static boolean ensureDirectoryExists(File file)
public static boolean ensureDirectoryExistsAndWarnIfNotWritable(File file)
public static boolean setReadable(File file, boolean readable)
public static boolean setWritable(File file, boolean writable)
public static boolean safeMkdir(File detailDirectory)
public static boolean safeMkdirs(File detailDirectory)
public static void moveFileSafely(File tempFile, String fileName) throws IOException
IOException