[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: Re: Recursive file copy
From: "Avi" <avi () alkalay ! net>
Date: 2003-06-02 13:25:12
[Download RAW message or body]
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" <coolo@kde.org> 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 <avi at alkalay.net>
+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 <<
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic