docstr: Get list of files
  
  Returns:
      list[dict]: files metadata
docstr_tok: ["Get","list","of","files","Returns",":","list","[","dict","]",":","files","metadata"]
code: def get_files(self):
      """Get list of files
  
      Returns:
          list[dict]: files metadata
      """
      file_records = (
          db.session.query(db.File)
          .filter_by(company_id=ctx.company_id)
          .all()
      )
      files_metadata = [
          {
              "name": record.name,
              "row_count": record.row_count,
              "columns": record.columns,
          }
          for record in file_records
      ]
      return files_metadata
  
file_path: mindsdb/mindsdb/interfaces/file/file_controller.py
imports: import json
  import os
  import shutil
  from pathlib import Path
  from mindsdb.integrations.handlers.file_handler import Handler
  from mindsdb.interfaces.storage import db
  from mindsdb.interfaces.storage.fs import FsStore
  from mindsdb.utilities import log
  from mindsdb.utilities.config import Config
  from mindsdb.utilities.context import context
label_desc: Use image node_id 4 for calling the FileController obj's underlying member method code with example usage: obj.get_files() and returns: files_metadata