mirror of
https://github.com/QuivrHQ/quivr.git
synced 2024-12-18 11:51:41 +03:00
17 lines
380 B
Python
17 lines
380 B
Python
|
from multiprocessing import get_logger
|
||
|
|
||
|
from models import get_supabase_client
|
||
|
from supabase.client import Client
|
||
|
|
||
|
logger = get_logger()
|
||
|
|
||
|
|
||
|
def list_files_from_storage(path):
|
||
|
supabase_client: Client = get_supabase_client()
|
||
|
|
||
|
try:
|
||
|
response = supabase_client.storage.from_("quivr").list(path)
|
||
|
return response
|
||
|
except Exception as e:
|
||
|
logger.error(e)
|