MonobjcMonobjc Documented Class Library
CopyItemAtURLToURLError Method (srcURL, dstURL, error)
NamespacesMonobjc.FoundationNSFileManagerCopyItemAtURLToURLError(NSURL, NSURL, NSError%)

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 BasicVisual C++
public virtual bool CopyItemAtURLToURLError(
	NSURL srcURL,
	NSURL dstURL,
	out NSError error
)
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
)
Parameters
srcURL (NSURL)
The URL of a file or directory.
dstURL (NSURL)
The URL of a file or directory.
error (NSError%)
If an error occurs, upon return contains an NSError object that describes the problem. Pass NULL if you do not want error information.
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)

Assembly: Monobjc.Foundation (Module: Monobjc.Foundation)