From a91ae779be65ad30bea76edfd61aac63a22ac939 Mon Sep 17 00:00:00 2001 From: Bryan Ashby Date: Sun, 10 Sep 2017 20:51:30 -0600 Subject: [PATCH] Add skipAcsCheck option to getAvailableFileAReas() --- core/file_base_area.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/core/file_base_area.js b/core/file_base_area.js index 93587aa7..ed34607d 100644 --- a/core/file_base_area.js +++ b/core/file_base_area.js @@ -65,6 +65,10 @@ function getAvailableFileAreas(client, options) { return true; } + if(options.skipAcsCheck) { + return false; // no ACS checks (below) + } + if(options.writeAcs && !client.acs.hasFileAreaWrite(areaInfo)) { return true; // omit } @@ -900,7 +904,7 @@ function getAreaStats(cb) { stats.totalBytes = (stats.totalBytes || 0) + v.total_byte_size; stats.areas = stats.areas || {}; - + stats.areas[v.area_tag] = { files : v.total_files, bytes : v.total_byte_size,