@Test
  public void testCreateDirectories() throws IOException {
    Files.createDirectories(path("/foo/bar/baz"));

    assertThatPath("/foo").isDirectory();
    assertThatPath("/foo/bar").isDirectory();
    assertThatPath("/foo/bar/baz").isDirectory();

    Files.createDirectories(path("/foo/asdf/jkl"));

    assertThatPath("/foo/asdf").isDirectory();
    assertThatPath("/foo/asdf/jkl").isDirectory();

    Files.createDirectories(path("bar/baz"));

    assertThatPath("bar/baz").isDirectory();
    assertThatPath("/work/bar/baz").isDirectory();
  }
");
    assertThatPath("foo/bar").doesNotMatch("glob:/**");
    assertThatPath("/foo/bar/baz/stuff").matches("glob:/foo/**");
    assertThatPath("/foo/bar/baz/stuff").matches("glob:/*
jimfs/src/test/java/com/google/common/jimfs/JimfsUnixLikeFileSystemTest.java