lib/browse_everything/driver/box.rb
def contents(id = '')
        folder = id.empty? ? box_client.root_folder : box_client.folder_by_id(id)
        values = []

        folder.items(ITEM_LIMIT, 0, %w[name size created_at]).collect do |f|
          values << directory_entry(f)
        end
        @entries = values.compact

        @sorter.call(@entries)
      end
# Retrieves the file entry objects for a given path to Box resource
# @param [String] id of the file or folder in Box
# @return [Array<BrowseEverything::FileEntry>]
Retrieves the file entry objects for a given path to Box resource
Retrieves the file entry objects for a given path to Box resource
def contents(id = '')
        folder = id.empty? ? box_client.root_folder : box_client.folder_by_id(id)
        values = []
        folder.items(ITEM_LIMIT, 0, %w[name size created_at]).collect do |f|
          values << directory_entry(f)
        end
        @entries = values.compact
        @sorter.call(@entries)
      end
def contents ( id = '' ) folder = id . empty? ? box_client . root_folder : box_client . folder_by_id ( id ) values = [ ] folder . items ( ITEM_LIMIT , 0 , %w[ name size created_at ] ) . collect do | f | values << directory_entry ( f ) end @entries = values . compact @sorter . call ( @entries ) end
Retrieves the file entry objects for a given path to Box resource
Retrieves the file entry objects for a given path to Box resource
None
Array<BrowseEverything::FileEntry>
id
id of the file or folder in Box
id of the file or folder in Box