MonobjcMonobjc Documented Class Library
RemoveFileAtPathHandler Method (path, handler)
NamespacesMonobjc.FoundationNSFileManagerRemoveFileAtPathHandler(NSString, Id)

Deletes the file, link, or directory (including, recursively, all subdirectories, files, and links in the directory) identified by a given path. (Deprecated in Mac OS X v10.5. Use removeItemAtPath:error: instead.)

Original signature is '- (BOOL)removeFileAtPath:(NSString *)path 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 removeItemAtPath:error: instead.")]
public virtual bool RemoveFileAtPathHandler(
	NSString path,
	Id handler
)
<ObsoleteAttribute("Deprecated in Mac OS X v10.5. Use removeItemAtPath:error: instead.")> _
Public Overridable Function RemoveFileAtPathHandler ( _
	path As NSString, _
	handler As Id _
) As Boolean
[ObsoleteAttribute(L"Deprecated in Mac OS X v10.5. Use removeItemAtPath:error: instead.")]
public:
virtual bool RemoveFileAtPathHandler(
	NSString^ path, 
	Id^ handler
)
Parameters
path (NSString)
The path of a file, link, or directory to delete. The value must not be "." or "..".
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 deletion stops and the method automatically returns NO.
Return Value
YES if the removal operation is successful. If the operation is not successful, but the handler method fileManager:shouldProceedAfterError: returns YES, also returns YES; otherwise returns NO.
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)