lib/browse_everything/driver/google_drive.rb
# Retrieve the files for any given resource on Google Drive
# @param path [String] the root or Folder path for which to list contents
# @return [Array<BrowseEverything::FileEntry>] file entries for the path
Retrieve the files for any given resource on Google Drive
Retrieve the files for any given resource on Google Drive
def contents(path = '')
        @entries = []
        drive_service.batch do |drive|
          request_params = Auth::Google::RequestParameters.new
          request_params.q += " and '#{path}' in parents " if path.present?
          list_files(drive, request_params, path: path)
        end
        @sorter.call(@entries)
      end
def contents ( path = '' ) @entries = [ ] drive_service . batch do | drive | request_params = Auth :: Google :: RequestParameters . new request_params . q += " and '#{path}' in parents " if path . present? list_files ( drive , request_params , path : path ) end @sorter . call ( @entries ) end
Retrieve the files for any given resource on Google Drive
Retrieve the files for any given resource on Google Drive
file entries for the path
file entries for the path
Array<BrowseEverything::FileEntry>
path
the root or Folder path for which to list contents
the root or Folder path for which to list contents