Description of Problem: If I try to copy directory containing only one file, I get this error: RETR /pub/test: 550 /pub/test: not a plain file. How Reproducible: Always Steps to Reproduce: 1. ftpcopy ftp://ftp.foo/pub/test testdir Actual Results: ftp://ftp.foo/pub/test: RETR /pub/test: 550 /pub/test: not a plain file. Expected Results: Additional Information: I use wu-ftpd-2.6.1-16 from RedHat Linux 7.1. Output of "ls -l /var/ftp/pub/test" on my server: -rw-r--r-- 1 root root 0 Aug 11 03:06 testfileIf I add one more file in test directory, I get successful copying.
As I'm quite a fan of ftpcopy and also testing a 0.3.10 beta version on a different machine, I have had to try this, and was able to reproduce it on stock 7.1. Though, contrary to your example, the correct syntax to mirror a dir would be: ftpcopy ftp.foo /pub/test testdir Ftpcopy does not know any protocol prefix such as ftp://, and the source path is a separate argument. This is fixed as of ftpcopy 0.3.6.
Fixed in the current version