/external/jimfs/jimfs/src/main/java/com/google/common/jimfs/ |
D | Options.java | 47 public static final ImmutableSet<LinkOption> NOFOLLOW_LINKS = field in Options 48 ImmutableSet.of(LinkOption.NOFOLLOW_LINKS); 56 ImmutableSet.<OpenOption>of(READ, LinkOption.NOFOLLOW_LINKS); 63 return options.length == 0 ? FOLLOW_LINKS : NOFOLLOW_LINKS; in getLinkOptions() 83 return options.contains(LinkOption.NOFOLLOW_LINKS) in getOptionsForChannel() 100 if (option == LinkOption.NOFOLLOW_LINKS) { in getOptionsForInputStream() 110 (ImmutableSet<?>) (nofollowLinks ? NOFOLLOW_LINKS : FOLLOW_LINKS); in getOptionsForInputStream() 138 return ImmutableSet.copyOf(Lists.asList(LinkOption.NOFOLLOW_LINKS, options)); in getMoveOptions()
|
D | FileSystemView.java | 256 DirectoryEntry entry = lookUp(path, Options.NOFOLLOW_LINKS); in createFile() 373 lookUpWithLock(path, Options.NOFOLLOW_LINKS).requireSymbolicLink(path).file(); in readSymbolicLink() 423 lookUp(link, Options.NOFOLLOW_LINKS).requireDoesNotExist(link).directory(); in link() 436 DirectoryEntry entry = lookUp(path, Options.NOFOLLOW_LINKS).requireExists(path); in deleteFile() 517 DirectoryEntry destEntry = destView.lookUp(dest, Options.NOFOLLOW_LINKS); in copy()
|
D | PathService.java | 23 import static java.nio.file.LinkOption.NOFOLLOW_LINKS; 243 return type.toUri(fileSystemUri, root, names, Files.isDirectory(path, NOFOLLOW_LINKS)); in toUri()
|
D | FileTree.java | 169 if (!options.contains(LinkOption.NOFOLLOW_LINKS) && file.isSymbolicLink()) { in lookUpLast()
|
D | JimfsFileSystemProvider.java | 306 return view.readAttributes(checkedPath, DosFileAttributes.class, Options.NOFOLLOW_LINKS) in isHidden()
|
/external/jimfs/jimfs/src/test/java/com/google/common/jimfs/ |
D | FileTreeTest.java | 22 import static java.nio.file.LinkOption.NOFOLLOW_LINKS; 232 assertExists(lookup("/work/four/five/bar", NOFOLLOW_LINKS), "foo", "bar"); in testLookup_absolute_intermediateSymlink() 233 assertExists(lookup("/work/four/six/two/three", NOFOLLOW_LINKS), "two", "three"); in testLookup_absolute_intermediateSymlink() 250 assertExists(lookup("/work/four/five", NOFOLLOW_LINKS), "four", "five"); in testLookup_absolute_finalSymlink_nofollowLinks() 251 assertExists(lookup("/work/four/six", NOFOLLOW_LINKS), "four", "six"); in testLookup_absolute_finalSymlink_nofollowLinks() 252 assertExists(lookup("/work/four/loop", NOFOLLOW_LINKS), "four", "loop"); in testLookup_absolute_finalSymlink_nofollowLinks() 346 assertExists(lookup("four/five/bar", NOFOLLOW_LINKS), "foo", "bar"); in testLookup_relative_intermediateSymlink() 347 assertExists(lookup("four/six/two/three", NOFOLLOW_LINKS), "two", "three"); in testLookup_relative_intermediateSymlink() 364 assertExists(lookup("four/five", NOFOLLOW_LINKS), "four", "five"); in testLookup_relative_finalSymlink_nofollowLinks() 365 assertExists(lookup("four/six", NOFOLLOW_LINKS), "four", "six"); in testLookup_relative_finalSymlink_nofollowLinks() [all …]
|
D | JimfsUnixLikeFileSystemTest.java | 25 import static java.nio.file.LinkOption.NOFOLLOW_LINKS; 427 assertThatPath("/link.txt", NOFOLLOW_LINKS).isSymbolicLink().withTarget("test.txt"); in testCreateSymbolicLink_absolute() 444 assertThatPath("/link.txt", NOFOLLOW_LINKS).isRegularFile(); in testCreateLink_absolute() 450 assertThatPath("/foo/link.txt", NOFOLLOW_LINKS).isRegularFile(); in testCreateLink_absolute() 458 assertThatPath("/work/test", NOFOLLOW_LINKS).isDirectory(); in testCreateDirectory_relative() 459 assertThatPath("test", NOFOLLOW_LINKS).isDirectory(); in testCreateDirectory_relative() 466 assertThatPath("/work/foo/bar", NOFOLLOW_LINKS).isDirectory(); in testCreateDirectory_relative() 467 assertThatPath("foo/bar", NOFOLLOW_LINKS).isDirectory(); in testCreateDirectory_relative() 477 assertThatPath("/work/test.txt", NOFOLLOW_LINKS).isRegularFile(); in testCreateFile_relative() 478 assertThatPath("test.txt", NOFOLLOW_LINKS).isRegularFile(); in testCreateFile_relative() [all …]
|
D | TestUtils.java | 19 import static java.nio.file.LinkOption.NOFOLLOW_LINKS; 112 if (Files.isDirectory(child, NOFOLLOW_LINKS)) { in permutations()
|
D | PathSubject.java | 54 private static final LinkOption[] NOFOLLOW_LINKS = {LinkOption.NOFOLLOW_LINKS}; field in PathSubject 76 this.linkOptions = NOFOLLOW_LINKS; in noFollowLinks()
|
/external/guava/guava/src/com/google/common/io/ |
D | MoreFiles.java | 20 import static java.nio.file.LinkOption.NOFOLLOW_LINKS; 104 if (option == NOFOLLOW_LINKS) { in followLinks() 120 followLinks ? FOLLOW_LINKS : new LinkOption[] {NOFOLLOW_LINKS}); in readAttributes() 304 if (Files.isDirectory(dir, NOFOLLOW_LINKS)) { 619 if (isDirectory(dir, path, NOFOLLOW_LINKS)) { 620 try (SecureDirectoryStream<Path> childDir = dir.newDirectoryStream(path, NOFOLLOW_LINKS)) { 664 if (Files.isDirectory(path, NOFOLLOW_LINKS)) {
|
/external/guava/guava-tests/test/com/google/common/io/ |
D | MoreFilesTest.java | 24 import static java.nio.file.LinkOption.NOFOLLOW_LINKS; 187 ByteSource source = MoreFiles.asByteSource(link, NOFOLLOW_LINKS); in testByteSource_size_ofSymlinkToRegularFile_nofollowLinks() 392 assertFalse(MoreFiles.isDirectory(NOFOLLOW_LINKS).apply(symlinkToDir)); in testPredicates() 393 assertFalse(MoreFiles.isRegularFile(NOFOLLOW_LINKS).apply(symlinkToFile)); in testPredicates() 501 assertTrue(Files.exists(symlink, NOFOLLOW_LINKS)); in testDeleteDirectoryContents_symlinkToDir() 625 assertTrue(Files.isRegularFile(file, NOFOLLOW_LINKS)); in testDeleteRecursively_nonDirectoryFile() 629 assertFalse(Files.exists(file, NOFOLLOW_LINKS)); in testDeleteRecursively_nonDirectoryFile() 635 assertTrue(Files.isDirectory(realSymlinkTarget, NOFOLLOW_LINKS)); in testDeleteRecursively_nonDirectoryFile() 639 assertFalse(Files.exists(symlink, NOFOLLOW_LINKS)); in testDeleteRecursively_nonDirectoryFile() 640 assertTrue(Files.isDirectory(realSymlinkTarget, NOFOLLOW_LINKS)); in testDeleteRecursively_nonDirectoryFile()
|
/external/icu/tools/cldr/cldr-to-icu/src/main/java/org/unicode/icu/tool/cldrtoicu/ant/ |
D | CleanOutputDirectoryTask.java | 9 import static java.nio.file.LinkOption.NOFOLLOW_LINKS; 233 if (!Files.isRegularFile(path, NOFOLLOW_LINKS)) { in wasAutoGenerated()
|