Commit c01f9d47 authored by Matthias Bernt's avatar Matthias Bernt
Browse files

fix sorting for recursively discovered datasets

files in subdirectories were not subject to sort
parent 7275b2f8
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -523,8 +523,9 @@ def walk_over_extra_files(target_dir, extra_file_collector, job_working_director
                    new_parent_paths = parent_paths[:]
                    new_parent_paths.append(filename)
                    # The current directory is already validated, so use that as the next job_working_directory when recursing
                    for match in walk_over_extra_files(filename, extra_file_collector, directory, matchable, parent_paths=new_parent_paths):
                        yield match
                    matches.extend(walk_over_extra_files(
                        filename, extra_file_collector, directory, matchable, parent_paths=new_parent_paths
                    ))
            else:
                match = extra_file_collector.match(matchable, filename, path=path, parent_paths=parent_paths)
                if match: