code: function fixPath(path, type) {
  
          if (!path) {
              return '';
          }
          var self = this;
          path = path.replace(/(^\/*)/g, '');
          if (type == 'folder') {
              path = encodeURIComponent(path + '/').replace(/%2F/g, '/');
          } else {
              path = encodeURIComponent(path).replace(/%2F/g, '/');
          }
  
          if (self) {
              self.path = '/' + self.appid + '/' + self.bucket + '/' + path;
          }
  
          return path;
      }
docs: 处理路径