Explorar el Código

Process files in alphabetical order

Jonas Borgström hace 14 años
padre
commit
5f75b41fc4
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      darc/archiver.py

+ 1 - 1
darc/archiver.py

@@ -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):