Home
last modified time | relevance | path

Searched refs:LinkOption (Results 1 – 25 of 25) sorted by relevance

/libcore/ojluni/src/main/java/java/nio/file/
DCopyMoveHelper.java57 if (option == LinkOption.NOFOLLOW_LINKS) { in parse()
91 newOptions[len] = LinkOption.NOFOLLOW_LINKS; in convertMoveToCopyOptions()
105 LinkOption[] linkOptions = (opts.followLinks) ? new LinkOption[0] : in copyToForeignTarget()
106 new LinkOption[] { LinkOption.NOFOLLOW_LINKS }; in copyToForeignTarget()
DSecureDirectoryStream.java97 SecureDirectoryStream<T> newDirectoryStream(T path, LinkOption... options) in newDirectoryStream()
311 LinkOption... options); in getFileAttributeView()
DFiles.java783 if (!isDirectory(dir, LinkOption.NOFOLLOW_LINKS))
1673 LinkOption... options)
1734 LinkOption... options)
1802 LinkOption... options)
1863 LinkOption... options)
1961 LinkOption... options)
2001 LinkOption... options)
2074 public static UserPrincipal getOwner(Path path, LinkOption... options) throws IOException {
2155 LinkOption.NOFOLLOW_LINKS).isSymbolicLink();
2190 public static boolean isDirectory(Path path, LinkOption... options) {
[all …]
DFileTreeWalker.java59 private final LinkOption[] linkOptions;
191 this.linkOptions = (fl) ? new LinkOption[0] : in FileTreeWalker()
192 new LinkOption[] { LinkOption.NOFOLLOW_LINKS }; in FileTreeWalker()
227 LinkOption.NOFOLLOW_LINKS); in getAttributes()
DLinkOption.java34 public enum LinkOption implements OpenOption, CopyOption { enum
DPath.java580 Path toRealPath(LinkOption... options) throws IOException; in toRealPath()
/libcore/ojluni/src/main/java/sun/nio/fs/
DLinuxFileSystemProvider.java60 LinkOption... options) in getFileAttributeView()
80 LinkOption... options) in getFileAttributeView()
101 LinkOption... options) in readAttributes()
DUtil.java123 static boolean followLinks(LinkOption... options) { in followLinks()
125 for (LinkOption option: options) { in followLinks()
126 if (option == LinkOption.NOFOLLOW_LINKS) { in followLinks()
DAbstractFileSystemProvider.java64 LinkOption... options); in getFileAttributeView()
70 LinkOption... options) in setAttribute()
83 …public final Map<String,Object> readAttributes(Path file, String attributes, LinkOption... options) in readAttributes()
DPollingWatchService.java260 Files.getLastModifiedTime(entry, LinkOption.NOFOLLOW_LINKS).toMillis();
340 Files.getLastModifiedTime(entry, LinkOption.NOFOLLOW_LINKS).toMillis();
DUnixFileSystemProvider.java113 LinkOption... options) in getFileAttributeView()
132 LinkOption... options) in readAttributes()
150 LinkOption... options) in getFileAttributeView()
DUnixCopyFile.java72 if (option == LinkOption.NOFOLLOW_LINKS) { in fromCopyOptions()
107 if (option == LinkOption.NOFOLLOW_LINKS) { in fromMoveOptions()
DUnixSecureDirectoryStream.java105 LinkOption... options) in newDirectoryStream()
318 LinkOption... options) in getFileAttributeView()
DUnixPath.java826 public Path toRealPath(LinkOption... options) throws IOException { in toRealPath()
/libcore/luni/src/test/filesystems/src/mypackage/
DMockFileSystemProvider.java27 import java.nio.file.LinkOption;
118 LinkOption... options) { in getFileAttributeView()
124 LinkOption... options) throws IOException { in readAttributes()
130 LinkOption... options) throws IOException { in readAttributes()
135 public void setAttribute(Path path, String attribute, Object value, LinkOption... options) in setAttribute()
/libcore/ojluni/src/main/java/java/nio/file/spi/
DFileSystemProvider.java1004 getFileAttributeView(Path path, Class<V> type, LinkOption... options); in getFileAttributeView()
1033 readAttributes(Path path, Class<A> type, LinkOption... options) throws IOException; in readAttributes()
1065 LinkOption... options) in readAttributes()
1101 Object value, LinkOption... options) in setAttribute()
/libcore/luni/src/test/java/libcore/java/nio/file/
DFiles2Test.java46 import java.nio.file.LinkOption;
169 LinkOption.NOFOLLOW_LINKS)).thenReturn(mockFileAttributeView); in test_getFileAttributeView()
171 FileAttributeView.class, LinkOption.NOFOLLOW_LINKS)); in test_getFileAttributeView()
178 LinkOption.NOFOLLOW_LINKS)).thenReturn(mockBasicFileAttributes); in test_readAttributes()
180 BasicFileAttributes.class, LinkOption.NOFOLLOW_LINKS)); in test_readAttributes()
187 LinkOption.NOFOLLOW_LINKS)); in test_setAttribute()
189 LinkOption.NOFOLLOW_LINKS); in test_setAttribute()
342 assertFalse(Files.isRegularFile(filesSetup.getTestPath(), LinkOption.NOFOLLOW_LINKS)); in test_isRegularFile()
376 Files.getLastModifiedTime(null, LinkOption.NOFOLLOW_LINKS); in test_getLastModifiedTime_NPE()
381 Files.getLastModifiedTime(filesSetup.getDataFilePath(), (LinkOption[]) null); in test_getLastModifiedTime_NPE()
[all …]
DDefaultSecureDirectoryStreamTest.java33 import java.nio.file.LinkOption;
163 relativize(symlinkPath), LinkOption.NOFOLLOW_LINKS)) { in test_newDirectoryStream_symbolicLink()
188 relativize(path_f1), (LinkOption) null)) { in test_newDirectoryStream_Exception()
481 LinkOption.NOFOLLOW_LINKS); in test_getFileAttributeView_Path_LinkOptions()
490 BasicFileAttributeView.class, LinkOption.NOFOLLOW_LINKS); in test_getFileAttributeView_Path_LinkOptions()
501 BasicFileAttributeView.class, (LinkOption) null); in test_getFileAttributeView_Path_LinkOptions()
DFilesSetup.java32 import java.nio.file.LinkOption;
DLinuxPathTest.java34 import java.nio.file.LinkOption;
351 realPath = symLink.toRealPath(LinkOption.NOFOLLOW_LINKS); in test_toRealPath()
/libcore/ojluni/annotations/hiddenapi/java/nio/file/
DFileTreeWalker.java82 private final java.nio.file.LinkOption[] linkOptions;
85 linkOptions = new java.nio.file.LinkOption[0];
/libcore/ojluni/src/test/java/nio/file/attribute/
DBasicFileAttributeViewTest.java100 Files.readAttributes(link, BasicFileAttributes.class, LinkOption.NOFOLLOW_LINKS); in checkAttributesOfLink()
DPosixFileAttributeViewTest.java37 import static java.nio.file.LinkOption.*;
/libcore/ojluni/src/main/java/java/util/logging/
DFileHandler.java42 import java.nio.file.LinkOption;
469 if (Files.isRegularFile(lockFilePath, LinkOption.NOFOLLOW_LINKS) in openFiles()
/libcore/
Dopenjdk_java_files.bp477 "ojluni/src/main/java/java/nio/file/LinkOption.java",