Skip navigation.
 
mlcopyPath and performFileOperation
FROM : Lorenzo Puleo
DATE : Mon Jan 27 18:30:06 2003

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_removed>
_______________________________________________
cocoa-dev mailing list | <email_removed>
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

Related mailsAuthorDate
mlcopyPath and performFileOperation Lorenzo Puleo Jan 27, 18:30
mlRe: copyPath and performFileOperation Michael Tsai Jan 27, 20:05
mlRe: copyPath and performFileOperation Lorenzo Puleo Jan 28, 00:01
mlRe: copyPath and performFileOperation Michael Tsai Jan 28, 01:19