public class SystemSupport extends Object
| 构造器和说明 |
|---|
SystemSupport() |
| 限定符和类型 | 方法和说明 |
|---|---|
static File |
createSymbolicLink(File symlink,
File target)
Creates a symbolic link
|
static void |
delete(File file)
Performs a nio delete
|
static boolean |
isSymLink(File file)
Invokes isSymbolicLink
|
static File |
readSymbolicLink(File symlink)
Reads the target of a symbolic link
|
public static boolean isSymLink(File file)
file - The file to checkpublic static File readSymbolicLink(File symlink) throws IOException
symlink - The symlink to readIOException - Upon failurepublic static File createSymbolicLink(File symlink, File target) throws IOException
symlink - The symlink to createtarget - Where it should pointIOException - upon errorpublic static void delete(File file) throws IOException
file - the file to deleteIOException - Upon errorCopyright © 2019. All rights reserved.