* mu4e: update doc for mu4e-create-maildir-maybe

This commit is contained in:
djcb
2013-03-04 20:58:41 -08:00
parent 1e53876240
commit 1c98cbbf4e

View File

@ -140,8 +140,10 @@ see its docstring)."
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(defun mu4e-create-maildir-maybe (dir) (defun mu4e-create-maildir-maybe (dir)
"Offer to create maildir DIR if it does not exist yet. "Offer to create maildir DIR if it does not exist yet.
Return t if the dir already existed, or has been created, nil Return t if the dir already existed, or an attempt has been made to
otherwise. DIR has to be an absolute path." create it -- we cannot be sure creation succeeded here, since this
is done asynchronously. Otherwise, return nil. NOte, DIR has to be
an absolute path."
(if (and (file-exists-p dir) (not (file-directory-p dir))) (if (and (file-exists-p dir) (not (file-directory-p dir)))
(mu4e-error "%s exists, but is not a directory." dir)) (mu4e-error "%s exists, but is not a directory." dir))
(cond (cond