@NotNull
  private String getTargetName(String resourcePath) {
    return resourcePath.substring(resourcePath.lastIndexOf('/') + 1);
  }
Basically the same as {@link DirectoryFixture#dir(String, Closure)}, but with the current root as base.
spock-core/src/main/java/spock/util/io/FileSystemFixture.java