]> git.eshelyaron.com Git - emacs.git/commitdiff
* net/ange-ftp.el (ange-ftp-make-directory): Don't raise an error,
authorMichael Albinus <michael.albinus@gmx.de>
Sun, 10 Feb 2013 10:07:09 +0000 (11:07 +0100)
committerMichael Albinus <michael.albinus@gmx.de>
Sun, 10 Feb 2013 10:07:09 +0000 (11:07 +0100)
if DIR exists and PARENTS is non-nil.

lisp/ChangeLog
lisp/net/ange-ftp.el

index 4e1f0ee09abf06a6ed603744dea5d99c45239549..580f9ea26be15412191d5f1f856c64178db3ca23 100644 (file)
@@ -1,3 +1,8 @@
+2013-02-10  Michael Albinus  <michael.albinus@gmx.de>
+
+       * net/ange-ftp.el (ange-ftp-make-directory): Don't raise an error,
+       if DIR exists and PARENTS is non-nil.
+
 2013-02-09  Chong Yidong  <cyd@gnu.org>
 
        * mail/emacsbug.el (report-emacs-bug): Change binding of
index bf6afae45daa63eb5c186b33bdd585a1589faf7f..1d910386403b7287e4e759805d064f02eb9be5c5 100644 (file)
@@ -4087,7 +4087,8 @@ directory, so that Emacs will know its current contents."
        (or (file-exists-p parent)
            (ange-ftp-make-directory parent parents))))
   (if (file-exists-p dir)
-      (error "Cannot make directory %s: file already exists" dir)
+      (unless parents
+       (error "Cannot make directory %s: file already exists" dir))
     (let ((parsed (ange-ftp-ftp-name dir)))
       (if parsed
          (let* ((host (nth 0 parsed))