class BrickFTP::RESTfulAPI::GetFolderSize
Get folder size
@see developers.files.com/#get-folder-size Get folder size
Public Instance Methods
call(path)
click to toggle source
Returns the size (in bytes) of the specified folder, recursively.
@param [String] path @return [Integer]
# File lib/brick_ftp/restful_api/get_folder_size.rb, line 19 def call(path) res = client.get("/api/rest/v1/folders/#{ERB::Util.url_encode(path)}?action=size") res['data']['size'] end