Possible Bug in lftp mirror using mirror:sort-by option
akshay gupta <[email protected]> Wed, 29 Oct 2014 12:37:54 +0530
| Newsgroups | gmane.network.lftp.user,gmane.network.lftp.devel |
|---|---|
| Message-ID | <CAB_qc73OritvPur6JqBUBobD8E23AnvkYtMGQD0uPpzuebrG-Q@mail.gmail.com> |
--===============8562620624004117996== Content-Type: multipart/alternative; boundary=f46d044287ba73bd4505068a6d94 --f46d044287ba73bd4505068a6d94 Content-Type: text/plain; charset=UTF-8 Hi, I am trying to mirror files using mirror:sort-by option set to 'date-desc'. My file structure is like this $ ls -l -R total 3191264 drwxr-xr-x 3 vikasgoyal biadmin 102 Oct 22 12:35 1 -rw-r--r-- 1 vikasgoyal biadmin 0 Aug 1 01:00 tmp.txt -rw-r--r-- 1 vikasgoyal biadmin 0 Aug 1 05:31 tmp1.txt -rw-r--r-- 1 vikasgoyal biadmin 263940738 Oct 28 13:51 abc.csv ./1: total 0 drwxr-xr-x 4 vikasgoyal biadmin 136 Oct 28 14:19 2 ./1/2: total 515512 -rw-r--r-- 1 vikasgoyal biadmin 0 Oct 28 14:19 3 -rw-r--r-- 1 vikasgoyal biadmin 263940732 Oct 28 14:03 bc.csv I expect the file synch order should be ~/tmp.txt ~/tmp1.txt ~/abc.csv ~/1/2/bc.csv ~/1/2/3 but the synch order is: ~/tmp.txt ~/tmp1.txt ~/1/2/bc.csv ~/1/2/3 ~/abc.csv I think its the folder modification time that is causing this issue. Lftp considers folder synch time to decide the order even though files contained in the folder are newer then the remaining files in the parent folder. File synch order should be in order of the modification time irrespective of the folder structure. Please help. Thanks, Akshay --f46d044287ba73bd4505068a6d94 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr">Hi,<div><br></div><div>I am trying to mirror files using m= irror:sort-by option set to 'date-desc'. My =C2=A0file structure is= like this=C2=A0</div><div><br></div><div><div>$ ls -l -R</div><div>total 3= 191264</div><div>drwxr-xr-x =C2=A03 vikasgoyal =C2=A0biadmin =C2=A0 =C2=A0 = =C2=A0 =C2=A0 102 Oct 22 12:35 1</div><div>-rw-r--r-- =C2=A01 vikasgoyal = =C2=A0biadmin =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 0 Aug =C2=A01 01:00 tmp.tx= t</div><div>-rw-r--r-- =C2=A01 vikasgoyal =C2=A0biadmin =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 0 Aug =C2=A01 05:31 tmp1.txt</div><div>-rw-r--r-- =C2=A01= vikasgoyal =C2=A0biadmin =C2=A0 263940738 Oct 28 13:51 abc.csv</div><div><= br></div><div>./1:</div><div>total 0</div><div>drwxr-xr-x =C2=A04 vikasgoya= l =C2=A0biadmin =C2=A0136 Oct 28 14:19 2</div><div><br></div><div>./1/2:</d= iv><div>total 515512</div><div>-rw-r--r-- =C2=A01 vikasgoyal =C2=A0biadmin = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A00 Oct 28 14:19 3</div><div>-rw-r--r-- =C2= =A01 vikasgoyal =C2=A0biadmin =C2=A0263940732 Oct 28 14:03 bc.csv</div></di= v><div><br></div><div><br></div><div>I expect the file synch order should b= e=C2=A0</div><div><br></div><div>~/tmp.txt</div><div>~/tmp1.txt</div><div>~= /abc.csv</div><div>~/1/2/bc.csv</div><div>~/1/2/3</div><div><br></div><div>= <br></div><div>but the synch order is:</div><div><div>~/tmp.txt</div><div>~= /tmp1.txt</div></div><div>~/1/2/bc.csv</div><div>~/1/2/3</div><div>~/abc.cs= v</div><div><br></div><div><br></div><div>I think its the folder modificati= on time that is causing this issue. Lftp considers folder synch time to dec= ide the order even though files contained in the folder are newer then the = remaining files in the parent folder. File synch order should be in order o= f the modification time irrespective of the folder structure. Please help.<= /div><div><br></div><div>Thanks,</div><div>Akshay</div><div><br></div><div>= <br></div><div><br></div><div><br></div><div><br></div></div> --f46d044287ba73bd4505068a6d94-- --===============8562620624004117996== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ lftp mailing list [email protected] http://univ.uniyar.ac.ru/mailman/listinfo/lftp --===============8562620624004117996==--