Method: Aspose::Cloud::AsposeStorage::Folder#get_files

Defined in:
lib/Storage/folder.rb

#get_files(remote_folder_path = '', storage_type = 'Aspose', storage_name = '') ⇒ Object

Retrieves Files and Folder information from a remote folder



33
34
35
36
37
38
39
40
41
42
# File 'lib/Storage/folder.rb', line 33

def get_files(remote_folder_path='', storage_type='Aspose', storage_name='')
  str_uri = @str_uri_folder + remote_folder_path
  str_uri = str_uri[0..-2] if str_uri[-1].eql? '/'
  str_uri = Aspose::Cloud::Common::Utils.append_storage(str_uri,'',storage_name,storage_type)

  signed_uri = Aspose::Cloud::Common::Utils.sign(str_uri)
  response = RestClient.get(signed_uri, :accept => 'application/json')

  JSON.parse(response)['Files']
end