You can try to use "cls" command, then analyze the output, or just try to
"cd" to the could-be-directory and act depending on the resulting exit
code, like this:

   cd DIR && do-something
   cd DIR || do-something-else



2014-01-27 Robert DuToit <rdut...@comcast.net>:

> Hi Alexander,
>
> Is there a way to tell if a file is a directory via lftp on server. I need
> to differentiate for a script that downloads various chosen files and
> folders.
>
> Locally no problem as I can just use the TCL command:
>
> set is_dir  [file isdirectory $this_file]
>
> Thanks,  rob
>
>
>
>
> _______________________________________________
> lftp mailing list
> lftp@uniyar.ac.ru
> http://univ.uniyar.ac.ru/mailman/listinfo/lftp
>
_______________________________________________
lftp mailing list
lftp@uniyar.ac.ru
http://univ.uniyar.ac.ru/mailman/listinfo/lftp

Reply via email to