public interface PosixFiles extends NativeIntegration
Modifier and Type | Method and Description |
---|---|
int |
getMode(java.io.File path)
Gets the mode for the given file.
|
java.lang.String |
readLink(java.io.File link)
Reads the contents of a symbolic link.
|
void |
setMode(java.io.File path,
int perms)
Sets the mode for the given file.
|
PosixFile |
stat(java.io.File path)
Returns basic information about the given file.
|
void |
symlink(java.io.File link,
java.lang.String contents)
Creates a symbolic link with given contents.
|
void setMode(java.io.File path, int perms) throws NativeException
NativeException
- On failure.int getMode(java.io.File path) throws NativeException
NativeException
- On failure.void symlink(java.io.File link, java.lang.String contents) throws NativeException
NativeException
- On failure.java.lang.String readLink(java.io.File link) throws NativeException
NativeException
- On failure.PosixFile stat(java.io.File path) throws NativeException
NativeException
- On failure.