* lisp/net/ange-ftp.el (ange-ftp-ls): Handle several "--dired" switches.

This commit is contained in:
Michael Albinus 2021-01-28 15:09:29 +01:00
parent a8c4f8041c
commit ac102bb966

View file

@ -2547,7 +2547,7 @@ can parse the output from a DIR listing for a host of type TYPE.")
FILE is the full name of the remote file, LSARGS is any args to pass to the
`ls' command, and PARSE specifies that the output should be parsed and stored
away in the internal cache."
(when (string-match "^--dired\\s-+" lsargs)
(while (string-match "^--dired\\s-+" lsargs)
(setq lsargs (replace-match "" nil t lsargs)))
;; If parse is t, we assume that file is a directory. i.e. we only parse
;; full directory listings.