From abe4addbdbe17fb8d40b71314a3dac42fbb2638d Mon Sep 17 00:00:00 2001 From: Brian Warner <warner@allmydata.com> Date: Tue, 20 May 2008 12:49:47 -0700 Subject: [PATCH] CLI mv: if we can't created the new child, don't delete the old one --- src/allmydata/scripts/tahoe_mv.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/allmydata/scripts/tahoe_mv.py b/src/allmydata/scripts/tahoe_mv.py index 6b33ba9d..d3867d8a 100644 --- a/src/allmydata/scripts/tahoe_mv.py +++ b/src/allmydata/scripts/tahoe_mv.py @@ -35,6 +35,8 @@ def mv(nodeurl, aliases, from_file, to_file, stdout, stderr): if not re.search(r'^2\d\d$', str(status)): print >>stderr, "error, got %s %s" % (resp.status, resp.reason) print >>stderr, resp.read() + print >>stderr, "NOT removing the original" + return # now remove the original resp = do_http("DELETE", from_url) -- 2.45.2