code: File copyWithoutContent(File file, AttributeCopyOption attributeCopyOption) throws IOException {
      File copy = factory.copyWithoutContent(file);
      setInitialAttributes(copy);
      attributes.copyAttributes(file, copy, attributeCopyOption);
      return copy;
    }
docs: Creates a copy of the given file, copying its attributes as well according to the given {@code
  attributeCopyOption}.