@Test public void testLookup_relative_withDotDotsInPath() throws IOException { assertExists(lookup(".."), "/", "/"); assertExists(lookup("../../.."), "/", "/"); assertExists(lookup("../work"), "/", "work"); assertExists(lookup("../../work"), "/", "work"); assertExists(lookup("../foo"), "/", "foo"); assertExists(lookup("../work/one/two/../two/three"), "two", "three"); assertExists(lookup("one/two/../../four/../one/two/three/../three"), "two", "three"); assertExists(lookup("one/two/three/../../two/three/.."), "one", "two"); assertExists(lookup("one/two/three/../../two/three/../.."), "work", "one"); }
public DirectoryEntry lookUp( File workingDirectory, JimfsPath path, Set<? super LinkOption> options) throws IOException { checkNotNull(path); checkNotNull(options); DirectoryEntry result = lookUp(workingDirectory, path, options, 0); if (result == null) { throw new NoSuchFileException(path.toString()); } return result; }
FileTree { public DirectoryEntry lookUp( File workingDirectory, JimfsPath path, Set<? super LinkOption> options) throws IOException { checkNotNull(path); checkNotNull(options); DirectoryEntry result = lookUp(workingDirectory, path, options, 0); if (result == null) { throw new NoSuchFileException(path.toString()); } return result; } }
FileTree { public DirectoryEntry lookUp( File workingDirectory, JimfsPath path, Set<? super LinkOption> options) throws IOException { checkNotNull(path); checkNotNull(options); DirectoryEntry result = lookUp(workingDirectory, path, options, 0); if (result == null) { throw new NoSuchFileException(path.toString()); } return result; } FileTree(Map<Name, Directory> roots); }
FileTree { public DirectoryEntry lookUp( File workingDirectory, JimfsPath path, Set<? super LinkOption> options) throws IOException { checkNotNull(path); checkNotNull(options); DirectoryEntry result = lookUp(workingDirectory, path, options, 0); if (result == null) { throw new NoSuchFileException(path.toString()); } return result; } FileTree(Map<Name, Directory> roots); ImmutableSortedSet<Name> getRootDirectoryNames(); @NullableDecl DirectoryEntry getRoot(Name name); DirectoryEntry lookUp(
      File workingDirectory, JimfsPath path, Set<? super LinkOption> options); }
FileTree { public DirectoryEntry lookUp( File workingDirectory, JimfsPath path, Set<? super LinkOption> options) throws IOException { checkNotNull(path); checkNotNull(options); DirectoryEntry result = lookUp(workingDirectory, path, options, 0); if (result == null) { throw new NoSuchFileException(path.toString()); } return result; } FileTree(Map<Name, Directory> roots); ImmutableSortedSet<Name> getRootDirectoryNames(); @NullableDecl DirectoryEntry getRoot(Name name); DirectoryEntry lookUp(
      File workingDirectory, JimfsPath path, Set<? super LinkOption> options);  }