From becf2b974f20af92996ddbbf1e023738d3803ef2 Mon Sep 17 00:00:00 2001 From: tecamenz Date: Thu, 21 Sep 2023 16:52:47 +0200 Subject: [PATCH] bugfix: wrong separator used Using os.sep on windows fails here because we are searching for "/" as a separator --- wfdb/io/record.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wfdb/io/record.py b/wfdb/io/record.py index 75ac1927..dfe3b987 100644 --- a/wfdb/io/record.py +++ b/wfdb/io/record.py @@ -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))