backand_sync_s3.js
function condition(file){
    var suffix = file.path.substr(file.base.length);
    var re = new RegExp(specialChars);
    var flag = service === "hosting" && re.test(suffix);
    var warning = "Warning: Cannot sync files with characters: " + specialChars + " in the file name: ";
    if (flag){
      var message = warning + suffix;
      console.log(message.red);
    }
    return flag;
  }
function condition(file){
    var suffix = file.path.substr(file.base.length);
    var re = new RegExp(specialChars);
    var flag = service === "hosting" && re.test(suffix);
    var warning = "Warning: Cannot sync files with characters: " + specialChars + " in the file name: ";
    if (flag){
      var message = warning + suffix;
      console.log(message.red);
    }
    return flag;
  }
function condition ( file ) { var suffix = file . path . substr ( file . base . length ) ; var re = new RegExp ( specialChars ) ; var flag = service === "hosting" && re . test ( suffix ) ; var warning = "Warning: Cannot sync files with characters: " + specialChars + " in the file name: " ; if ( flag ) { var message = warning + suffix ; console . log ( message . red ) ; } return flag ; }
exclude files with special characters in name
exclude files with special characters in name