copyPath and performFileOperation
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.