Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
92b28133
Commit
92b28133
authored
Jun 10, 1993
by
Jim Blandy
Browse files
* ange-ftp.el (ange-ftp-make-directory): Take second optional
argument parents, like the original. Implement it.
parent
17df4d9d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
lisp/ange-ftp.el
lisp/ange-ftp.el
+6
-2
No files found.
lisp/ange-ftp.el
View file @
92b28133
...
...
@@ -856,7 +856,7 @@ SIZE, if supplied, should be a prime number."
;;;; Internal variables.
;;;; ------------------------------------------------------------
(defconst ange-ftp-version "$Revision: 1.2
4
$")
(
defconst
ange-ftp-version
"$Revision: 1.2
5
$"
)
(
defvar
ange-ftp-data-buffer-name
" *ftp data*"
"Buffer name to hold directory listing data received from ftp process."
)
...
...
@@ -3546,8 +3546,12 @@ system TYPE.")
(
ange-ftp-del-hash-entry
dir
ange-ftp-files-hashtable
)
(
ange-ftp-get-files
dir
t
))))
(defun ange-ftp-make-directory (dir)
(
defun
ange-ftp-make-directory
(
dir
&optional
parents
)
(
interactive
(
list
(
expand-file-name
(
read-file-name
"Make directory: "
))))
(
if
parents
(
let
((
parent
(
file-name-directory
(
directory-file-name
dir
))))
(
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
)
(
let
((
parsed
(
ange-ftp-ftp-name
dir
)))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment