GNU bug report logs - #30533
26.0.60; (copy-file) over TRAMP FTP mistakes file for directory

Previous Next

Package: emacs;

Reported by: Christian Johansson <christian <at> mediastrategi.se>

Date: Mon, 19 Feb 2018 17:29:01 UTC

Severity: normal

Found in version 26.0.60

Done: Michael Albinus <michael.albinus <at> gmx.de>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Christian Johansson <christian <at> cvj.se>
To: 30533 <at> debbugs.gnu.org
Subject: bug#30533: 26.0.60; (copy-file) over TRAMP FTP mistakes file for directory
Date: Tue, 20 Feb 2018 16:49:57 +0100
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 <at> 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 <at> speedtest.tele2.net:/1KB.zip is a directory
tramp-file-name-handler: Opening directory: Not a directory, 
/ftp:anonymous <at> speedtest.tele2.net:/1KB.zip





This bug report was last modified 7 years and 92 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.