Print a message on successful deletion
This commit is contained in:
parent
08fb2679bd
commit
31c26adf0e
1 changed files with 2 additions and 1 deletions
3
hypo.hy
3
hypo.hy
|
@ -117,7 +117,8 @@ If no lexer is found fallback onto the text lexer."
|
||||||
(defun delete-dir [self name]
|
(defun delete-dir [self name]
|
||||||
(let ((dirname (+ "files/" name)))
|
(let ((dirname (+ "files/" name)))
|
||||||
(if (os.path.exists dirname)
|
(if (os.path.exists dirname)
|
||||||
(shutil.rmtree dirname)
|
(do (shutil.rmtree dirname)
|
||||||
|
(+ "Succesfully removed " name "\n"))
|
||||||
(no-such-file))))
|
(no-such-file))))
|
||||||
|
|
||||||
(defun upload-file [self name]
|
(defun upload-file [self name]
|
||||||
|
|
Loading…
Reference in a new issue