MonobjcMonobjc Documented Class Library
CopyPathToPathHandler Method (source, destination, handler)
NamespacesMonobjc.FoundationNSFileManagerCopyPathToPathHandler(NSString, NSString, Id)

Copies the directory or file specified in a given path to a different location in the file system identified by another path. (Deprecated in Mac OS X v10.5. Use copyItemAtPath:toPath:error: instead.)

Original signature is '- (BOOL)copyPath:(NSString *)source toPath:(NSString *)destination handler:(id)handler'

Available in Mac OS X v10.0 and later.

Declaration Syntax
C#Visual BasicVisual C++
[ObsoleteAttribute("Deprecated in Mac OS X v10.5. Use copyItemAtPath:toPath:error: instead.")]
public virtual bool CopyPathToPathHandler(
	NSString source,
	NSString destination,
	Id handler
)
<ObsoleteAttribute("Deprecated in Mac OS X v10.5. Use copyItemAtPath:toPath:error: instead.")> _
Public Overridable Function CopyPathToPathHandler ( _
	source As NSString, _
	destination As NSString, _
	handler As Id _
) As Boolean
[ObsoleteAttribute(L"Deprecated in Mac OS X v10.5. Use copyItemAtPath:toPath:error: instead.")]
public:
virtual bool CopyPathToPathHandler(
	NSString^ source, 
	NSString^ destination, 
	Id^ handler
)
Parameters
source (NSString)
The location of the source file.
destination (NSString)
The location to which to copy the file specified by source.
handler (Id)
An object that responds to the callback messages fileManager:willProcessPath: and fileManager:shouldProceedAfterError:. You can specify nil for handler; if you do so and an error occurs, the method automatically returns NO.
Return Value
YES if the copy operation is successful. If the operation is not successful, but the callback handler of fileManager:shouldProceedAfterError: returns YES, copyPath:toPath:handler: also returns YES. Otherwise this method returns NO. The method also attempts to make the attributes of the directory or file at destination identical to source, but ignores any failure at this attempt.
Version Information
  • Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later), 10.5 (For Mac OS X 10.5 and later)

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