Commit ecacb4d6 authored by Michael Albinus's avatar Michael Albinus
Browse files

* net/tramp-fish.el (tramp-fish-handle-delete-directory): Handle

optional parameter RECURSIVE.
parent c15cdf02
......@@ -312,10 +312,19 @@ pass to the OPERATION."
'copy filename newname ok-if-already-exists keep-date preserve-uid-gid))
(defun tramp-fish-handle-delete-directory (directory)
(defun tramp-fish-handle-delete-directory (directory &optional recursive)
"Like `delete-directory' for Tramp files."
(when (file-exists-p directory)
(if recursive
(lambda (file)
(if (file-directory-p file)
(delete-directory file recursive)
(delete-file file)))
;; We do not want to delete "." and "..".
directory 'full "^\\([^.]\\|\\.\\([^.]\\|\\..\\)\\).*")))
(directory-file-name (expand-file-name directory)) nil
(tramp-flush-directory-property v localname)
(tramp-fish-send-command-and-check v (format "#RMD %s" localname)))))
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment