Process files in alphabetical order

This commit is contained in:
Jonas Borgström 2011-07-01 22:01:24 +02:00
parent 650bd69da5
commit 5f75b41fc4
1 changed files with 1 additions and 1 deletions

View File

@ -97,7 +97,7 @@ class Archiver(object):
except OSError, e:
self.print_error('%s: %s', path, e)
else:
for filename in entries:
for filename in sorted(entries):
self._process(archive, cache, patterns, skip_inodes,
os.path.join(path, filename))
elif stat.S_ISLNK(st.st_mode):