• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
RE: Re: Copying a file package[Solved]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Prev by Date: moved project won't rebuild or clean
  • Next by Date: Re: Printing with a WebView
  • Previous by thread: Re: moved project won't rebuild or clean
  • Next by thread: clean fails
  • Index(es):
    • Date
    • Thread