Function: erc-directory-writable-p

erc-directory-writable-p is a byte-compiled function defined in erc.el.gz.

Signature

(erc-directory-writable-p DIR)

Documentation

Determine whether DIR is a writable directory.

If it doesn't exist, create it.

Source Code

;; Defined in /usr/src/emacs/lisp/erc/erc.el.gz
;; Hook functions

(defun erc-directory-writable-p (dir)
  "Determine whether DIR is a writable directory.
If it doesn't exist, create it."
  (unless (file-attributes dir) (make-directory dir))
  (or (file-accessible-directory-p dir) (error "Cannot access %s" dir)))