Paladugula Siva Satyanarayana commited on
Commit
673b697
·
1 Parent(s): 6871514
backend/app/services/utility.py CHANGED
@@ -114,8 +114,11 @@ class UtilityClass:
114
  :param local_db_path: Local path to save the file. If None, saves to './downloaded_db.db'.
115
  :return: Local file path of the downloaded DB.
116
  """
117
- if local_db_path is None:
118
- temp_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..", "tmp")
 
 
 
119
  os.makedirs(temp_dir, exist_ok=True)
120
  local_db_path = os.path.join(temp_dir, "downloaded_db.db")
121
  dbx = dropbox.Dropbox(dropbox_token)
 
114
  :param local_db_path: Local path to save the file. If None, saves to './downloaded_db.db'.
115
  :return: Local file path of the downloaded DB.
116
  """
117
+ if local_db_path is None:
118
+ print("Is /tmp writable?", os.access('/tmp', os.W_OK))
119
+ print("Is /mnt writable?", os.access('/mnt', os.W_OK))
120
+ print("Is /space writable?", os.access('/space', os.W_OK))
121
+ temp_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..", "space")
122
  os.makedirs(temp_dir, exist_ok=True)
123
  local_db_path = os.path.join(temp_dir, "downloaded_db.db")
124
  dbx = dropbox.Dropbox(dropbox_token)
backend/mnt/test.py ADDED
File without changes
backend/space/test.py ADDED
File without changes