public class SymbolicLink extends File
DEFAULT_MODE, DIRECTORY_MODE, MAX_MODE
Constructor and Description |
---|
SymbolicLink(java.nio.file.Path targetPath,
java.nio.file.Path referencedPath)
Create a new symbolic link object.
|
Modifier and Type | Method and Description |
---|---|
protected void |
installContents(java.nio.file.Path targetAbsolutePath)
Install the file into specified location.
|
equals, getAccessMode, getDescriptor, getDescriptorExtra, getTargetPath, hashCode, install
public SymbolicLink(java.nio.file.Path targetPath, java.nio.file.Path referencedPath)
targetPath
- location where the symbolic link will be placed (relative to install root)referencedPath
- path referenced by this symlink (i.e. contents of the symlink)protected void installContents(java.nio.file.Path targetAbsolutePath) throws java.io.IOException
File
Implementations of this method can assume that all parent directory of target file already exists. Access mode of target file doesn't have to be set as it will be manipulated with other means.
installContents
in class File
targetAbsolutePath
- absolute path to the target filejava.io.IOException
Copyright © 2012–2017 Red Hat, Inc.. All rights reserved.