
public class Directory extends File
While package doesn't have to own all directories it creates, directories represented by instances of this class are assumed to be owned by the package they belong to.
DEFAULT_MODE, DIRECTORY_MODE, MAX_MODE| Constructor and Description | 
|---|
| Directory(java.nio.file.Path targetPath)Create a directory with specified path and default permissions (0755). | 
| Directory(java.nio.file.Path targetPath,
         int accessMode)Create a directory with specified path and permissions. | 
| Modifier and Type | Method and Description | 
|---|---|
| protected java.lang.String | getDescriptorExtra()Get additional file attributes to be added to file descriptor. | 
| protected void | installContents(java.nio.file.Path targetAbsolutePath)Install the file into specified location. | 
equals, getAccessMode, getDescriptor, getTargetPath, hashCode, installpublic Directory(java.nio.file.Path targetPath)
targetPath - directory path, relative to installation rootpublic Directory(java.nio.file.Path targetPath,
                 int accessMode)
targetPath - directory path, relative to installation rootaccessMode - Unix access mode of the file (must be an integer in range from 0 to 0777)protected void installContents(java.nio.file.Path targetAbsolutePath)
                        throws java.io.IOException
FileImplementations 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 FiletargetAbsolutePath - absolute path to the target filejava.io.IOExceptionprotected java.lang.String getDescriptorExtra()
FileBy default there are no extra attributes, but subclasses can override this method and specify it.
getDescriptorExtra in class Filenull)Copyright © 2012–2017 Red Hat, Inc.. All rights reserved.