• 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
copyPath and performFileOperation
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

copyPath and performFileOperation


  • Subject: copyPath and performFileOperation
  • From: Lorenzo Puleo <email@hidden>
  • Date: Mon, 27 Jan 2003 18:30:06 +0100

I noted that the API "copyPath" and "performFileOperation" cannot copy some
file that the Finder can copy properly.

For example, they cannot copy a Photoshop Plugin called:
"/Applications/Adobe Photoshop 7/Plug-Ins/Adobe Photoshop
Only/Extensions/Enable Async I:O/Enable Async I:O"

Even if I change the ":" in the Finder (that are really "/" in the Finder)
this way:
"/Applications/Adobe Photoshop 7/Plug-Ins/Adobe Photoshop
Only/Extensions/EnableFolder/EnableFile"

the APIs "copyPath" and "performFileOperation" cannot copy the file.
Also I renamed the file "Enable Async I:O" to "x" and I put it into a new
folder "A" placed in the root
/A/x
but again the APIs returned NO.

So I suppose the problem is not coming from the slashes in the pathname.
Please note that the Finder can copy this file properly.

I tried either
copied = [manager copyPath:sourceItem toPath:destItem handler:nil];
and
copied = [workSpace performFileOperation:NSWorkspaceCopyOperation
source:[source stringByDeletingLastPathComponent]
destination:[dest stringByDeletingLastPathComponent]
files:[NSArray arrayWithObject:[source lastPathComponent]]
tag:nil];

and both the API return NO;
I would like to say that other files, that the Finder can copy properly,
cannot be copied by these two Cocoa API. (for example, "TopCalculette Pro"
application).

What should I do? Is it an APIs' bug?

Thank you and Regards
--
Lorenzo Puleo
mailto:email@hidden
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: copyPath and performFileOperation
      • From: Michael Tsai <email@hidden>
  • Prev by Date: Re: Nib Corruption ("Inconsistencies"): Can This Nib Be Saved?
  • Next by Date: full screen app
  • Previous by thread: Re: Cursor position
  • Next by thread: Re: copyPath and performFileOperation
  • Index(es):
    • Date
    • Thread