public class NioFiles extends Object
Constructor and Description |
---|
NioFiles() |
Modifier and Type | Method and Description |
---|---|
static void |
chmod(File file,
int mode) |
static File |
copy(File source,
File target) |
static File |
createSymbolicLink(File symlink,
File target) |
static boolean |
deleteIfExists(File file) |
static long |
getLastModified(File file) |
static boolean |
isSymbolicLink(File file) |
static File |
readSymbolicLink(File symlink)
Reads the target of the symbolic link
|
public static boolean isSymbolicLink(File file)
public static void chmod(File file, int mode) throws IOException
IOException
public static long getLastModified(File file) throws IOException
IOException
public static File readSymbolicLink(File symlink) throws IOException
symlink
- A file that is a symlinkIOException
- io issuepublic static File createSymbolicLink(File symlink, File target) throws IOException
IOException
public static boolean deleteIfExists(File file) throws IOException
IOException
public static File copy(File source, File target) throws IOException
IOException
Copyright © 2001–2022 The Apache Software Foundation. All rights reserved.