aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Tom Willemse2014-02-19 01:02:21 +0100
committerGravatar Tom Willemse2014-02-19 01:02:21 +0100
commit31c26adf0e262e6e54ce4df151b651a1fc3a86ce (patch)
tree7385848567356da4d253018fbf03a02d7f61297b
parent08fb2679bdbc1ea346f6a0e3e3fc0a92b0791c7a (diff)
downloadhypo-31c26adf0e262e6e54ce4df151b651a1fc3a86ce.tar.gz
hypo-31c26adf0e262e6e54ce4df151b651a1fc3a86ce.zip
Print a message on successful deletion
-rwxr-xr-xhypo.hy3
1 files changed, 2 insertions, 1 deletions
diff --git a/hypo.hy b/hypo.hy
index a8e27b9..435a128 100755
--- a/hypo.hy
+++ b/hypo.hy
@@ -117,7 +117,8 @@ If no lexer is found fallback onto the text lexer."
(defun delete-dir [self name]
(let ((dirname (+ "files/" name)))
(if (os.path.exists dirname)
- (shutil.rmtree dirname)
+ (do (shutil.rmtree dirname)
+ (+ "Succesfully removed " name "\n"))
(no-such-file))))
(defun upload-file [self name]