From kde-devel Mon Jun 02 13:25:12 2003 From: "Avi" Date: Mon, 02 Jun 2003 13:25:12 +0000 To: kde-devel Subject: Re: Recursive file copy X-MARC-Message: https://marc.info/?l=kde-devel&m=105456043727265 Yeah, this is KDirLister... But the API is very complex, using signals, and UDS entries... I'll have to cenvert it to KURL::List, by hand. Any better idea? Thanks, Avi On Mon, 2 Jun 2003 15:13:21 +0200, "Stephan Kulow" said: > On Monday 02 June 2003 14:51, Avi wrote: > > I'm trying to use KIO to emulate this kind of copy: > > > > cp -r /dir1/dir2/* /dir3/dir4/ > > > > Human languange: Copy all contents of /dir1/dir2/ inside /dir3/dir4/. > > > > With current KIO::copy() I can only create dir2/ inside dir4/, which is > > not what I need. > > Any idea on how I can emulate the command above? > > > well, write it as > list=`ls -1d /dir1/dir2/*` > for file in $list; do > cp -r $file /dir3/dir4/ > done > > That you can write in KIO (not with NetAccess though) > > Greetings, Stephan > > >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe << > . . . . . . . . . . . . . . . . . Avi Alkalay +55 11 3673-4209 | 9659-9059 Think Open :: Think Linux -- http://www.fastmail.fm - Send your email first class >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<