what about using "wget -nd -P dvd ftp://host/tools/test01/dvd" ?
Giuseppe art N <art...@gmail.com> 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