Mirror in lftp works directory by directory. It does not build full list of
files first, so it cannot sort the whole list. Maybe the mirror algorithm
should be redesigned to build the whole recursive list first. What do you
think?

2014-10-29 10:07 GMT+03:00 akshay gupta <akshaygupta...@gmail.com>:

> 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
>
>
>
>
>
>


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

Reply via email to