getByTag(query) {
    this[this.type] = this.files.filter((file) => {
      if (query && file.tags) {
        return file.tags.some((tag) => {
          return tag === query;
        });
      }
    });
  }
Get files by tag.
@method
@param {string} query - Search query.
@returns {array} Files array