Skip to content

Commit 4124358

Browse files
committed
Resolved comment
1 parent dc0ba24 commit 4124358

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/api/routes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ async def fetch_document(request: Request):
276276

277277
file_path = os.path.join(folder_path, file_name)
278278

279-
if not os.path.exists(file_path):
279+
if file_name not in os.listdir(folder_path):
280280
raise HTTPException(status_code=404, detail="File not found")
281281

282282
try:

0 commit comments

Comments
 (0)