bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#30533: 26.0.60; (copy-file) over TRAMP FTP mistakes file for directo


From: Christian Johansson
Subject: bug#30533: 26.0.60; (copy-file) over TRAMP FTP mistakes file for directory
Date: Tue, 20 Feb 2018 16:49:57 +0100
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:52.0) Gecko/20100101 Thunderbird/52.6.0

Ok this doesn't work for me with latest trunk, this is a public ftp so you should be able to connect.

(let ((remote-path "/ftp:anonymous@speedtest.tele2.net:/1KB.zip")
      (local-path "~/Downloads/1KB.zip"))
  (if (file-regular-p remote-path)
      (progn
    (message "File %s is a regular file" remote-path)
    (copy-file remote-path local-path t t t t))
    (progn
      (message "File %s is a directory" remote-path)
      (copy-directory remote-path local-path t t t))))

Messages:
File /ftp:anonymous@speedtest.tele2.net:/1KB.zip is a directory
tramp-file-name-handler: Opening directory: Not a directory, /ftp:anonymous@speedtest.tele2.net:/1KB.zip






reply via email to

[Prev in Thread] Current Thread [Next in Thread]