[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-wget] Wget path problem
From: |
Giuseppe Scrivano |
Subject: |
Re: [Bug-wget] Wget path problem |
Date: |
Fri, 03 Sep 2010 10:47:27 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) |
what about using "wget -nd -P dvd ftp://host/tools/test01/dvd" ?
Giuseppe
art N <address@hidden> writes:
> Hi,
>
> I'm using wget and came across a issue where I want to copy only the last
> dir from FTP to local system.
> The copy works fine but the problem is that wget creates the ftp full path.
> I don't want that I ust want the last folder to be created.
>
> Ex:
>
> remote ftp: /tools/test01/dvd
> local: /usr/mytools/
>
>
> So when I copy I want only directory dvd to get copied to my local but it
> copies to /usr/mytools/tools/test01/dvd. I want it to copy my local
> /usr/mytools/dvd.
>
> I know I can use --cut-dir option but that's not helpful since the ftp path
> is dynamic and can change so I always want the last path.
> Is this possible with wget or I should look for another option?
>
> Thanks,
> Art