Vivek0912 commited on
Commit
0e9da69
·
verified ·
1 Parent(s): 0893934

update file path

Browse files
Files changed (1) hide show
  1. backend/app/api/endpoints.py +2 -2
backend/app/api/endpoints.py CHANGED
@@ -21,11 +21,11 @@ from config import settings
21
  router = APIRouter()
22
 
23
  # Define the directory where attachments will be saved
24
- SAVE_DIR = Path("data/attachments")
25
  SAVE_FILE_PATH = SAVE_DIR / settings.settings.ALLOWED_PRIORITY_RULES_FILENAME
26
 
27
  if not SAVE_DIR.exists():
28
- SAVE_DIR.mkdir(parents=True)
29
  print(f"Directory created: {SAVE_DIR}")
30
  else:
31
  print(f"Directory already exists: {SAVE_DIR}")
 
21
  router = APIRouter()
22
 
23
  # Define the directory where attachments will be saved
24
+ SAVE_DIR = Path("/tmp/attachments")
25
  SAVE_FILE_PATH = SAVE_DIR / settings.settings.ALLOWED_PRIORITY_RULES_FILENAME
26
 
27
  if not SAVE_DIR.exists():
28
+ SAVE_DIR.mkdir(parents=True, exist_ok=True)
29
  print(f"Directory created: {SAVE_DIR}")
30
  else:
31
  print(f"Directory already exists: {SAVE_DIR}")