diff options
author | Lars Wirzenius <liw@liw.fi> | 2010-12-04 19:03:53 +0000 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2010-12-04 19:03:53 +0000 |
commit | 5d69aba49f7edaa0f5e6783f2adf8cd648dfe918 (patch) | |
tree | 2b24f7d5d800dcc24e03fe1a39d6b07f6c27658e | |
parent | 66f424d2117f3d08b9f061a5ed43f2fd24e8df50 (diff) | |
download | obnam-5d69aba49f7edaa0f5e6783f2adf8cd648dfe918.tar.gz |
Sort directories and files when backing up.
This makes for a nicer user experience, in some corner
cases, and shouldn't matter for performance.
-rw-r--r-- | obnamlib/plugins/backup_plugin.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/obnamlib/plugins/backup_plugin.py b/obnamlib/plugins/backup_plugin.py index a30a5244..e30c92d0 100644 --- a/obnamlib/plugins/backup_plugin.py +++ b/obnamlib/plugins/backup_plugin.py @@ -167,6 +167,8 @@ class BackupPlugin(obnamlib.ObnamPlugin): prune_list(subdirs) prune_list(filenames) + subdirs.sort() + filenames.sort() def needs_backup(self, pathname, current): '''Does a given file need to be backed up?''' |