public class FileSystemUtil
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static boolean |
clonePermissions(java.lang.String source,
java.lang.String target)
Gives the second file permissions of the first one if possible; returns true if succeed.
|
static boolean |
clonePermissionsToExecute(java.lang.String source,
java.lang.String target)
Gives the second file permissions to execute of the first one if possible; returns true if succeed.
|
static FileAttributes |
getAttributes(java.io.File file) |
static FileAttributes |
getAttributes(java.lang.String path) |
static boolean |
isSymLink(java.io.File file)
Checks if a last element in the path is a symlink.
|
static boolean |
isSymLink(java.lang.String path)
Checks if a last element in the path is a symlink.
|
static long |
lastModified(java.io.File file) |
static java.lang.String |
resolveSymLink(java.io.File file) |
static java.lang.String |
resolveSymLink(java.lang.String path) |
public static FileAttributes getAttributes(java.lang.String path)
public static FileAttributes getAttributes(java.io.File file)
public static long lastModified(java.io.File file)
public static boolean isSymLink(java.lang.String path)
public static boolean isSymLink(java.io.File file)
public static java.lang.String resolveSymLink(java.lang.String path)
public static java.lang.String resolveSymLink(java.io.File file)
public static boolean clonePermissions(java.lang.String source, java.lang.String target)
public static boolean clonePermissionsToExecute(java.lang.String source, java.lang.String target)