Added PosixFile.symlink() and readLink().

This commit is contained in:
Adam Murdoch
2012-09-01 16:11:30 +10:00
parent cd24d5fb51
commit 4e8db25017
8 changed files with 161 additions and 13 deletions

View File

@@ -19,4 +19,18 @@ public interface PosixFile extends NativeIntegration {
* @throws NativeException On failure.
*/
int getMode(File path) throws NativeException;
/**
* Creates a symbolic link.
*
* @throws NativeException On failure.
*/
void symlink(File link, String contents) throws NativeException;
/**
* Reads the contents of a symbolic link.
*
* @throws NativeException On failure.
*/
String readLink(File link) throws NativeException;
}