code: public File getParentFile() {
          String tempParent = getParent();
          if (tempParent == null) {
              return null;
          }
          return new File(tempParent);
      }
docs: Returns a new file made from the pathname of the parent of this file.
  This is the path up to but not including the last name. {@code null} is
  returned when there is no parent.
  
  @return a new file representing this file's parent or {@code null}.