Constructor and Description |
---|
UnixUtil() |
Modifier and Type | Method and Description |
---|---|
static boolean |
isSymlink(File inFile)
Uses the 'stat' command to test if the specified file is a symbolic link.
|
static String |
readlink(File inFile)
Uses the 'readlink' command to read the contents of a symbolic link.
|
static void |
symlink(File inFrom,
File inLink)
Function to create a symbolic link.
|
public UnixUtil()
public static void symlink(File inFrom, File inLink) throws IOException
inFrom
- the file being linked to.inLink
- the file that will become the symbolic link.IOException
public static boolean isSymlink(File inFile)
public static String readlink(File inFile) throws IOException
IOException