ogeti siva satyanarayana commited on
Commit
578889f
·
1 Parent(s): 473ecbf

Update download.py

Browse files
Files changed (1) hide show
  1. app/api/v1/download.py +2 -1
app/api/v1/download.py CHANGED
@@ -12,7 +12,8 @@ def download_file(file_path: str = Query(..., description="Relative path from pr
12
 
13
  # Absolute path (from project root)
14
  abs_path = os.path.join(os.getcwd(), file_path)
15
-
 
16
  if not os.path.isfile(abs_path):
17
  raise HTTPException(status_code=404, detail="File not found")
18
 
 
12
 
13
  # Absolute path (from project root)
14
  abs_path = os.path.join(os.getcwd(), file_path)
15
+
16
+ print("Looking for file at:", abs_path)
17
  if not os.path.isfile(abs_path):
18
  raise HTTPException(status_code=404, detail="File not found")
19