Copies the directory or file specified in a given URL to a different location in the file system identified by another URL.
Original signature is '- (BOOL)copyItemAtURL:(NSURL *)srcURL toURL:(NSURL *)dstURL error:(NSError **)error'
Available in Mac OS X v10.6 and later.
Declaration Syntax
C# | Visual Basic | Visual C++ |
Public Overridable Function CopyItemAtURLToURLError ( _ srcURL As NSURL, _ dstURL As NSURL, _ <OutAttribute> ByRef error As NSError _ ) As Boolean
public: virtual bool CopyItemAtURLToURLError( NSURL^ srcURL, NSURL^ dstURL, [OutAttribute] NSError^% error )
Return Value
YES if the operation was successful. If the operation is not successful, but the delegate returns YES from the fileManager:shouldProceedAfterError:copyingItemAtURL:toURL: message, copyItemAtURL:toURL:error: also returns YES. Otherwise this method returns NO. The method also attempts to make the attributes of the directory or file at dstURL identical to srcURL, but ignores any failure at this attempt.
Version Information
- Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later)