def set_search_by_path(path, delete = false)
      raise JSS::InvalidDataError, 'Path to search for must be a String or a Pathname' unless path.is_a?(String) || path.is_a?(Pathname)
      @files_processes[:search_by_path] = path.to_s
      @files_processes[:delete_file] = delete ? true : false
      @need_to_update = true
    end
def set_search_by_path(path, delete = false)
      raise JSS::InvalidDataError, 'Path to search for must be a String or a Pathname' unless path.is_a?(String) || path.is_a?(Pathname)
      @files_processes[:search_by_path] = path.to_s
      @files_processes[:delete_file] = delete ? true : false
      @need_to_update = true
    end
Set the path to search for, a String or Pathname, and whether or not to delete it if found.

 Setter methods (which end with =) can't easily take
 multiple arguments, so we instead name them "set_blah_blah"
 rather than "blah_blah="

 @param path[String,Pathname] the path to search for

 @param delete[Boolean] should the path be deleted if found

 @return [void]