Hi,
I've seen the following on for two different SFTP servers.
For this SFTP service (ProFTPD with mod_sftp) the find command doesn't seem to 
recognize the *.txt files:
lftp sftp_u...@xxx.xxx.xxx.xxx:~> dir
drwx------  sftp_user/SFTP 4096 2012-04-05 09:32 .
drwx------  sftp_user/SFTP 4096 2012-04-05 09:32 ..
-rw-rw-r--  sftp_user/SFTP 3856 2012-04-05 09:32 tweety.txt
-rw-rw-r--  sftp_user/SFTP 3856 2012-04-05 09:32 tweety2.txt
-rw-rw-r--  sftp_user/SFTP 3856 2012-04-05 09:32 tweety3.txt
lftp sftp_u...@xxx.xxx.xxx.xxx:/> find *.txt ||exit 8;
find: Access failed: No such file (/*.txt)


For this SFTP service (Synchrony Gateway), find works as expected:
lftp sftp_u...@xxx.xxx.xxx.xxx:~> dir
-rw-rw-rw- 9 sftp_user SFTP 3856 Mar  9 13:02 tweety.txt
-rw-rw-rw- 9 sftp_user SFTP 3856 Mar  9 13:02 tweety1.txt
-rw-rw-rw- 9 sftp_user SFTP 3856 Mar  9 13:02 tweety2.txt
lftp sftp_u...@xxx.xxx.xxx.xxx:/> find *.txt ||exit 8;
*.txt
lftp sftp_u...@xxx.xxx.xxx.xxx:/> dir
-rw-rw-rw- 9 sftp_user SFTP 3856 Mar  9 13:02 tweety.txt
-rw-rw-rw- 9 sftp_user SFTP 3856 Mar  9 13:02 tweety1.txt
-rw-rw-rw- 9 sftp_user SFTP 3856 Mar  9 13:02 tweety2.txt
lftp sftp_u...@xxx.xxx.xxx.xxx:/> find *.csv ||exit 8;
find: Access failed: No such file (/*.csv)

Any idea why there is a different behavior for the find command?

Regards,
Tilo
_______________________________________________
lftp mailing list
lftp@uniyar.ac.ru
http://univ.uniyar.ac.ru/mailman/listinfo/lftp

Reply via email to