Spaces:
Sleeping
Sleeping
File size: 880 Bytes
525d5c5 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 | 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('.')}") |