Which backend protocol do you use? If ftp, then ls arguments are wholly passed to server side as LIST argument. If other protocols, then most probably you may only specify a directory to list.
There is another command - cls - which handles arguments locally and provides better functionality compared with plain "ls". Try it. Exit code may be not that you want though. 2014-04-15 17:27 GMT+04:00 <tilo.mue...@bertelsmann.de>: > Hi, > > is it somehow possible, to list files by using a pattern like: > > ls *.csv > > dir *.csv > > > > And if no files are found, exit that ls or dir command with an exit code > <> 0? > > > > Regards, > > Tilo > > > > _______________________________________________ > lftp mailing list > lftp@uniyar.ac.ru > http://univ.uniyar.ac.ru/mailman/listinfo/lftp > > -- Alexander.
_______________________________________________ lftp mailing list lftp@uniyar.ac.ru http://univ.uniyar.ac.ru/mailman/listinfo/lftp