Re: BUG: mirror creates locally directories that aren't supposed to be needed/files downloaded

2009-12-21 Thread Alexander V. Lukyanov
On Sat, Dec 05, 2009 at 09:41:30PM +0100, Arkadiusz Miskiewicz wrote:
 creates locally all three dirs which doesn't make sense. I would consider this
 to be a bug. IMO only somedir and anotherdir should be created as only these
 two contain files matching regexp.

mirror --no-empty-dirs should skip those directories.

--
   Alexander.


Re: BUG: mirror creates locally directories that aren't supposed to be needed/files downloaded

2009-12-07 Thread Justin Piszcz



On Sat, 5 Dec 2009, Arkadiusz Miskiewicz wrote:



remote server contains
/somedir/ble.txt
/otherdir/crap.txt
/another/ble.txt

mirror -c -i '.*ble.*'

creates locally all three dirs which doesn't make sense. I would consider this
to be a bug. IMO only somedir and anotherdir should be created as only these
two contain files matching regexp.

lftp 4.0.4

--
Arkadiusz Mi?kiewiczPLD/Linux Team
arekm / maven.plhttp://ftp.pld-linux.org/



I have seen this as well, it should only create a directory if the files 
it is downloading matches the regexp.


Instead, when you mirror and use an include regexp for '^.*txt$' for 
example it will create a directory locally for all of the the directories 
it traverses, rather than just mirroring the ones with actual text files 
inside them.


Justin.