diff --git a/src/allmydata/scripts/tahoe_rm.py b/src/allmydata/scripts/tahoe_rm.py index 3b133d089..51fb28c35 100644 --- a/src/allmydata/scripts/tahoe_rm.py +++ b/src/allmydata/scripts/tahoe_rm.py @@ -21,7 +21,11 @@ def rm(options): except UnknownAliasError, e: e.display(stderr) return 1 - assert path + if not path: + print >>stderr, """ +'tahoe rm' can only unlink directory entries, so a path must be given.""" + return 1 + url = nodeurl + "uri/%s" % urllib.quote(rootcap) url += "/" + escape_path(path)