Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
saramsey committed Oct 19, 2023
1 parent 63e0449 commit 63918bb
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions code/ARAX/ARAXQuery/ARAX_database_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -348,8 +348,7 @@ def rsync_database(self, remote_location, local_path, debug=False):
verbose = ""
if debug:
verbose = "vv"
#os.system(f"rsync -Lhzc{verbose} --progress {remote_location} {local_path}")
eprint(f"ERROR: Wanted to run the following rsync, but it isn't going to work anyway. Skipping: rsync -Lhzc{verbose} --progress {remote_location} {local_path}")
os.system(f"rsync -Lhzc{verbose} --progress {remote_location} {local_path}")

def _download_to_mnt(self, debug=False, skip_if_exists=False, remove_unused=False):
"""
Expand Down Expand Up @@ -390,7 +389,7 @@ def _force_download_all(self, debug=False):
def check_all(self, max_days=31, debug=False):
update_flag = False
for database_name, file_path in self.local_paths.items():
if os.path.exists(file_path):
if os.path.exitss(file_path):
if debug:
now_time = datetime.datetime.now()
modified_time = time.localtime(os.stat(file_path).st_mtime)
Expand Down

0 comments on commit 63918bb

Please sign in to comment.