RE: Re: Copying a file package[Solved]
RE: Re: Copying a file package[Solved]
- Subject: RE: Re: Copying a file package[Solved]
- From: "Peter Karlsson" <email@hidden>
- Date: Tue, 19 Oct 2004 13:52:41 +0200
I used this code and it works exactly as I want:
NSFileManager *manager = [NSFileManager defaultManager];
if ([manager fileExistsAtPath:fromPath])
{
[manager copyPath:fromPath toPath:toPath handler:nil];
}
Peter
Ursprungligt meddelande
>
>
On 2004-10-19, at 10.44, Peter Karlsson wrote:
>
>
> Is there a simple way of programatically copying a file package from
>
> one
>
> path to another path?
>
>
>
> Example: I have a file package on my desktop, and I want to copy it to
>
> a
>
> folder somewhere. I want the folder (package filename) of the package
>
> and
>
> all the files inside it to be copyed from one path to another.
>
>
Perhaps you can try NSWorkspace >
>
performFileOperation:source:destination:files:tag:, and the
>
NSWorkspaceMoveOperation?
>
>
j o a r
>
>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden