Spaces:
Running
Running
File size: 481 Bytes
efdcdc4 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
import os
def get_subfolders(path):
try:
return sorted([f for f in os.listdir(path) if os.path.isdir(os.path.join(path, f))])
except Exception as e:
print(f"❌ Error reading subfolders from {path}: {e}")
return []
def get_csv_files(path):
try:
return sorted([f[:-4] for f in os.listdir(path) if f.endswith(".csv")])
except Exception as e:
print(f"❌ Error reading CSVs from {path}: {e}")
return []
|