Skip to content
This repository has been archived by the owner on Oct 23, 2023. It is now read-only.

Commit

Permalink
Access rules directories in sorted order
Browse files Browse the repository at this point in the history
This provides a stable rule parsing order. e.g.
A directoory named `10-overrides` will always be accessed after
`00-default`, rather than in the order the filesystem returns.

Closes #274
  • Loading branch information
baodrate authored and nefelim4ag committed Dec 4, 2020
1 parent dcc00ac commit a3be150
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ananicy.py
Original file line number Diff line number Diff line change
Expand Up @@ -506,7 +506,7 @@ def dir_must_exits(self, path):

def find_files(self, path, name_mask):
files = []
entries = os.listdir(path)
entries = sorted(os.listdir(path))
if not entries:
return files
for entry_name in entries:
Expand Down

0 comments on commit a3be150

Please sign in to comment.