MonobjcMonobjc Documented Class Library
DirectoryContentsAtPath Method (path)
NamespacesMonobjc.FoundationNSFileManagerDirectoryContentsAtPath(NSString)

Returns the directories and files (including symbolic links) contained in a given directory. (Deprecated in Mac OS X v10.5. Use contentsOfDirectoryAtPath:error: instead.)

Original signature is '- (NSArray *)directoryContentsAtPath:(NSString *)path'

Available in Mac OS X v10.0 and later.

Declaration Syntax
C#Visual BasicVisual C++
[ObsoleteAttribute("Deprecated in Mac OS X v10.5. Use contentsOfDirectoryAtPath:error: instead.")]
public virtual NSArray DirectoryContentsAtPath(
	NSString path
)
<ObsoleteAttribute("Deprecated in Mac OS X v10.5. Use contentsOfDirectoryAtPath:error: instead.")> _
Public Overridable Function DirectoryContentsAtPath ( _
	path As NSString _
) As NSArray
[ObsoleteAttribute(L"Deprecated in Mac OS X v10.5. Use contentsOfDirectoryAtPath:error: instead.")]
public:
virtual NSArray^ DirectoryContentsAtPath(
	NSString^ path
)
Parameters
path (NSString)
A path to a directory.
Return Value
An array of NSString objects identifying the directories and files (including symbolic links) contained in path. Returns an empty array if the directory exists but has no contents. Returns nil if the directory specified at path does not exist or there is some other error accessing it.
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)