On Sat, Dec 13, 2014 at 11:15:40PM +0100, Franck Eyraud wrote:
> There is already a --ascii option to the mirror command (implies
> --ignore-size), which could be selectively applied to files matching a
> pattern.

Wow, I have forgot about this option.

> In fact, I though afterwards the I could get the desired behaviour by
> running 2 successive mirror commands :
> mirror --exclude my_pattern
> mirror --include my_pattern --ascii

You are correct - this solution should work fine.

-- 
   Alexander.


> Le 13/12/2014 19:13, Alexander Lukyanov a écrit :
> >There is no such feature in lftp. I don't think it's feasible to do: ascii
> >mode changes the file and the next mirror will consider the file changed
> >and thus re-transfer it.
> >
> >2014-12-12 14:52 GMT+04:00 Franck Eyraud <franck+l...@nospam.yrnm.net
> ><mailto:franck+l...@nospam.yrnm.net>>:
> >
> >    Hi lftp list,
> >
> >    Just a quick question, because I didn't find in the man page :
> >
> >    Is it possible to select the transfert type (binary/ascii) based
> >    of file name pattern (e.g. download ascii all *.txt files) when
> >    mirroring a ftp server ?
> >    I remember that I saw this options on some graphical client, so I
> >    was wondering for lftp. I checked also the variables, but I didn't
> >    find any.
> >
> >    Thank you for your help,
> >
> >    Franck
> >
> >    _______________________________________________
> >    lftp mailing list
> >    lftp@uniyar.ac.ru <mailto: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

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

Reply via email to