Package org.codehaus.plexus.util
Class NioFiles
java.lang.Object
org.codehaus.plexus.util.NioFiles
Encapsulates use of java7 features, exposing mostly backward compatible types
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidstatic Filestatic FilecreateSymbolicLink(File symlink, File target) static booleandeleteIfExists(File file) static longgetLastModified(File file) static booleanisSymbolicLink(File file) static FilereadSymbolicLink(File symlink) Reads the target of the symbolic link
-
Constructor Details
-
NioFiles
public NioFiles()
-
-
Method Details
-
isSymbolicLink
-
chmod
- Throws:
IOException
-
getLastModified
- Throws:
IOException
-
readSymbolicLink
Reads the target of the symbolic link- Parameters:
symlink- A file that is a symlink- Returns:
- A file that is the target of the symlink
- Throws:
IOException- io issue
-
createSymbolicLink
- Throws:
IOException
-
deleteIfExists
- Throws:
IOException
-
copy
- Throws:
IOException
-