Skip to content

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 nefelim4ag#274
  • Loading branch information
baodrate committed Dec 2, 2020
1 parent dcc00ac commit b508a9e
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 b508a9e

Please sign in to comment.