Method: Cloudinary::Utils.download_folder

Defined in:
lib/cloudinary/utils.rb

.download_folder(folder_path, options = {}) ⇒ String

Creates and returns a URL that when invoked creates an archive of a folder.

Parameters:

  • folder_path (Object)

    Full path (from the root) of the folder to download.

  • options (Hash) (defaults to: {})

    Additional options.

Returns:



887
888
889
890
891
# File 'lib/cloudinary/utils.rb', line 887

def self.download_folder(folder_path, options = {})
  resource_type = options[:resource_type] || "all"

  download_archive_url(options.merge(:resource_type => resource_type, :prefixes => folder_path))
end