public static final FileAttribute < ? > [ ] getDefaultSymbolicLinkFileAttributes ( Map < String , ? > env ) { FileAttribute < ? > [ ] attrs = ( FileAttribute < ? > [ ] ) env . get ( DEFAULT_SYMBOLIC_LINK_FILE_ATTRIBUTES ) ; if ( attrs == null ) { attrs = new FileAttribute < ? > [ ] { PosixFilePermissions . asFileAttribute ( PosixFilePermissions . fromString ( "rwxrwxrwx" ) ) , new FileAttributeImpl ( OWNER , new UnixUser ( "root" , 0 ) ) , new FileAttributeImpl ( GROUP , new UnixGroup ( "root" , 0 ) ) , } ; } return attrs ; }
Return default attributes for new symbolic link . Either from env or default values .