lib/opt_parse_validator/opts/path.rb
def check_writable(path)
      raise Error, "'#{path}' is not writable" if path.exist? && !path.writable? || !path.parent.writable?
    end
def check_writable(path)
      raise Error, "'#{path}' is not writable" if path.exist? && !path.writable? || !path.parent.writable?
    end
If the path does not exist, it will check for the parent
 directory write permission

 @param [ Pathname ] path