Home
last modified time | relevance | path

Searched refs:NOFOLLOW_LINKS (Results 1 – 12 of 12) sorted by relevance

/external/jimfs/jimfs/src/main/java/com/google/common/jimfs/
DOptions.java47 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()
DFileSystemView.java256 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()
DPathService.java23 import static java.nio.file.LinkOption.NOFOLLOW_LINKS;
243 return type.toUri(fileSystemUri, root, names, Files.isDirectory(path, NOFOLLOW_LINKS)); in toUri()
DFileTree.java169 if (!options.contains(LinkOption.NOFOLLOW_LINKS) && file.isSymbolicLink()) { in lookUpLast()
DJimfsFileSystemProvider.java306 return view.readAttributes(checkedPath, DosFileAttributes.class, Options.NOFOLLOW_LINKS) in isHidden()
/external/jimfs/jimfs/src/test/java/com/google/common/jimfs/
DFileTreeTest.java22 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 …]
DJimfsUnixLikeFileSystemTest.java25 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 …]
DTestUtils.java19 import static java.nio.file.LinkOption.NOFOLLOW_LINKS;
112 if (Files.isDirectory(child, NOFOLLOW_LINKS)) { in permutations()
DPathSubject.java54 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/
DMoreFiles.java20 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/
DMoreFilesTest.java24 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/
DCleanOutputDirectoryTask.java9 import static java.nio.file.LinkOption.NOFOLLOW_LINKS;
233 if (!Files.isRegularFile(path, NOFOLLOW_LINKS)) { in wasAutoGenerated()