Add skipAcsCheck option to getAvailableFileAReas()

This commit is contained in:
Bryan Ashby 2017-09-10 20:51:30 -06:00
parent 9d09390561
commit a91ae779be
1 changed files with 5 additions and 1 deletions

View File

@ -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,