From: Brian Warner Date: Tue, 20 May 2008 19:49:47 +0000 (-0700) Subject: CLI mv: if we can't created the new child, don't delete the old one X-Git-Tag: allmydata-tahoe-1.1.0~98 X-Git-Url: https://git.rkrishnan.org/provisioning?a=commitdiff_plain;h=abe4addbdbe17fb8d40b71314a3dac42fbb2638d;p=tahoe-lafs%2Ftahoe-lafs.git CLI mv: if we can't created the new child, don't delete the old one --- 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)