Function: tramp-crypt-remove-directory

tramp-crypt-remove-directory is an interactive and byte-compiled function defined in tramp-crypt.el.gz.

Signature

(tramp-crypt-remove-directory NAME)

Documentation

Unmark expanded remote directory NAME for encryption.

Existing files in that directory and its subdirectories will be kept in their encrypted form.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/net/tramp-crypt.el.gz
(defun tramp-crypt-remove-directory (name)
  "Unmark expanded remote directory NAME for encryption.
Existing files in that directory and its subdirectories will be
kept in their encrypted form."
  ;; (declare (completion tramp-crypt-command-completion-p))
  (interactive "DRemote directory name: ")
  (unless tramp-crypt-enabled
    (tramp-user-error nil "Feature is not enabled"))
  (setq name (file-name-as-directory (expand-file-name name)))
  (when (and (member name tramp-crypt-directories)
	     (delete
	      tramp-crypt-encfs-config
	      (directory-files name nil directory-files-no-dot-files-regexp))
	     (yes-or-no-p
	      "There exist encrypted files, do you want to continue?"))
    (setq tramp-crypt-directories (delete name tramp-crypt-directories))
    (tramp-register-file-name-handlers)))