Skip to content

Commit f77a411

Browse files
authored
update get_io to check for suffix rather than existence of file
1 parent f608309 commit f77a411

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

neo/io/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -429,7 +429,7 @@ def list_candidate_ios(file_or_folder, ignore_patterns=['*.ini', 'README.txt', '
429429
"""
430430
file_or_folder = pathlib.Path(file_or_folder)
431431

432-
if file_or_folder.is_file():
432+
if file_or_folder.suffix:
433433
suffix = file_or_folder.suffix[1:].lower()
434434
if suffix not in io_by_extension:
435435
raise ValueError(f'{suffix} is not a supported format of any IO.')

0 commit comments

Comments
 (0)