+2002-04-26 Kenichi OKADA <okada@opaopa.org>
+
+ * elmo-utils.el (elmo-make-directory): Add option.
+ Default file mode is 700.
+
2002-04-17 Hiroya Murata <lapis-lazuli@pop06.odn.ne.jp>
* elmo-shimbun.el (elmo-folder-local-p): Defined.
(setq last-modified (+ (* (nth 0 last-modified)
(float 65536)) (nth 1 last-modified)))))
-(defun elmo-make-directory (path)
+(defun elmo-make-directory (path &optional mode)
"Create directory recursively."
(let ((parent (directory-file-name (file-name-directory path))))
(if (null (file-directory-p parent))
(elmo-make-directory parent))
(make-directory path)
- (if (string= path (expand-file-name elmo-msgdb-directory))
- (set-file-modes path (+ (* 64 7) (* 8 0) 0))))) ; chmod 0700
+ (set-file-modes path (or mode
+ (+ (* 64 7) (* 8 0) 0))))) ; chmod 0700
(defun elmo-delete-directory (path &optional no-hierarchy)
"Delete directory recursively."