Thank you for your answer.
I know about the size situation, but I don't care much if ascii files
are untimely downloaded, in this case 99,99% are binary data, the rest
is some descriptive files that are windows CR/LF formatted (in fact I'm
anyway using mirror more because it is recursive than incremental since
I'm downloading a whole bunch of data in an empty destination)
There is already a --ascii option to the mirror command (implies
--ignore-size), which could be selectively applied to files matching a
pattern.
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
Franck
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