I know which is the error. The actual implementation of "mirror:exclude-regex" is insufficient. First: Why doesn't it match against of entire path? It's obvious that lftp knows it. It's very poor the actual implementation of this setting.
Second: It should have one method to define several patterns.
Regards.

El sáb 17 dic 2011 17:28:20 CET, Simón escribió:
I have defined the next setting in my rc file:

    set mirror:exclude-regex
    
"^.+\.part$|^.+/mkv/.+\.jpg|jpeg|png|JPG|PNG|JPEG$|^.+/mkv/.+\.zip|rar|RAR|ZIP$"

    $ mkv (it's an alias)
    cd ok, cwd=/mkv
    lcd ok, local cwd=/dunehd1/Descargando

    $ mirror prueba

        /"prueba" folder has several files:
        CIMG3399-peq.jpeg
        DSC_5355.JPG
        Mosca_Da_Sopa.jpg
        anger.PNG
        mifoto.png
        pruerba.txt/

But lftp downloads 2 files: "pruerba.txt" and "Mosca_Da_Sopa.jpg". The first is correct but not the second. Why? Is this a bug or is this a problem in my pattern?
Regards.

El vie 16 dic 2011 20:04:03 CET, Simón escribió:

I expose my case:
I change to a folder in remote/local. I execute "mirror remote-file.ext"
In this case, does it match only against the filename?

El vie 16 dic 2011 16:49:21 CET, Alexander V. Lukyanov escribió:

On Fri, Dec 16, 2011 at 01:22:55PM +0100, Simón wrote:

Does "mirror:exclude-regex" check folders too?
I mean, does it check that pattern against "folder/filename.ext" of
downloaded file?


Yes, it matches against path relative to base directory.

I.e. if you run "mirror /dir1 /dir2" then it matches against
"sub/sub/dir/file.txt".
_______________________________________________
lftp mailing list
lftp@uniyar.ac.ru
http://univ.uniyar.ac.ru/mailman/listinfo/lftp

Reply via email to