diff options
Diffstat (limited to 'combox')
-rw-r--r-- | combox/events.py | 2 | ||||
-rw-r--r-- | combox/file.py | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/combox/events.py b/combox/events.py index be37337..fa238ee 100644 --- a/combox/events.py +++ b/combox/events.py @@ -506,7 +506,7 @@ class NodeDirMonitor(LoggingEventHandler): return else: try: - os.rename(src_cb_path, dest_cb_path) + os.renames(src_cb_path, dest_cb_path) except OSError, e: log_e("Jeez, failed to rename path. %r" % e) self.silo.node_rem(silo_node_dict, src_cb_path) diff --git a/combox/file.py b/combox/file.py index b02c1ab..2f65e05 100644 --- a/combox/file.py +++ b/combox/file.py @@ -200,7 +200,7 @@ def move_nodedir(src, dest, config): src_dir_path = path.join(node, src_rel_path) dest_dir_path = path.join(node, dest_rel_path) try: - os.rename(src_dir_path, dest_dir_path) + os.renames(src_dir_path, dest_dir_path) except OSError, e: log_e("Error when trying to rename %s -> %s" % (src_dir_path, dest_dir_path)) @@ -267,7 +267,7 @@ def move_shards(src, dest, config): dest_shard = "%s.shard%s" % (path.join(node, dest_rel_path), shard_no) try: - os.rename(src_shard, dest_shard) + os.renames(src_shard, dest_shard) except OSError, e: log_e("Error when trying to rename shard %s -> %s" % (src_shard, dest_shard)) |