We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d9c96b0 commit 6834457Copy full SHA for 6834457
neo/rawio/neuralynxrawio/neuralynxrawio.py
@@ -231,7 +231,8 @@ def _parse_header(self):
231
else: # one-dir mode
232
# For one-dir mode, get all files from directory
233
dir_path = Path(self.dirname)
234
- file_paths = [item for item in sorted(dir_path.iterdir()) if item.is_file()]
+ file_paths = [p for p in dir_path.iterdir() if p.is_file()]
235
+ file_paths = sorted(file_paths, key=lambda p: p.name)
236
237
# 2) Filter by exclude filenames
238
file_paths = [fp for fp in file_paths if fp.name not in self.exclude_filenames]
0 commit comments