Skip to content

Commit b310fd9

Browse files
committed
Corrected path to check for previous download
1 parent 6d789d8 commit b310fd9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

changehc/delphi_changehc/download_ftp_files.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def get_files_from_dir(sftp, out_path):
3333
file_time = datetime.datetime.fromtimestamp(fileattr.st_mtime)
3434
filename = fileattr.filename
3535
if current_time - file_time < datetime.timedelta(days=1) and \
36-
not path.exists(filename):
36+
not path.exists(path.join(out_path, filename)):
3737
filepaths_to_download[filename] = path.join(out_path, filename)
3838

3939
# make sure we don't download more than 2 files per day

0 commit comments

Comments
 (0)