Spaces:
Sleeping
Sleeping
| import os | |
| from pathlib import Path | |
| # Check various possible locations | |
| possible_paths = [ | |
| "processed_data", | |
| "/app/processed_data", | |
| "../processed_data", | |
| "./processed_data" | |
| ] | |
| for path in possible_paths: | |
| chunks_file = Path(path) / "document_chunks.pkl" | |
| qdrant_dir = Path(path) / "qdrant_vectorstore" | |
| print(f"Checking path: {path}") | |
| print(f" Exists?: {os.path.exists(path)}") | |
| if os.path.exists(path): | |
| print(f" Contents: {os.listdir(path)}") | |
| print(f" Chunks file exists?: {os.path.exists(chunks_file)}") | |
| print(f" Qdrant dir exists?: {os.path.exists(qdrant_dir)}") | |
| if os.path.exists(qdrant_dir): | |
| print(f" Qdrant contents: {os.listdir(qdrant_dir)}") | |
| # Show current working directory and its contents | |
| print(f"Current directory: {os.getcwd()}") | |
| print(f"Contents: {os.listdir('.')}") |