Skip to content

Commit

Permalink
Merge pull request #465 into main
Browse files Browse the repository at this point in the history
Using os.sep on Windows fails here because we are specifically
searching for "/" as a separator.
  • Loading branch information
Benjamin Moody committed Sep 29, 2023
2 parents 2cdb44a + becf2b9 commit 8d81359
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wfdb/io/record.py
Original file line number Diff line number Diff line change
Expand Up @@ -3049,7 +3049,7 @@ def dl_database(
for rec in record_list:
print("Generating record list for: " + rec)
# May be pointing to directory
if rec.endswith(os.sep):
if rec.endswith("/"):
nested_records += [
posixpath.join(rec, sr)
for sr in download.get_record_list(posixpath.join(db_dir, rec))
Expand Down

0 comments on commit 8d81359

Please sign in to comment.