File copyWithoutContent(File file, AttributeCopyOption attributeCopyOption) throws IOException {
    File copy = factory.copyWithoutContent(file);
    setInitialAttributes(copy);
    attributes.copyAttributes(file, copy, attributeCopyOption);
    return copy;
  }
Creates a copy of the given file, copying its attributes as well according to the given {@code
attributeCopyOption}.
jimfs/src/main/java/com/google/common/jimfs/JimfsFileStore.java