MonobjcMonobjc Documented Class Library
CreateDirectoryAtPathAttributes Method (path, attributes)
NamespacesMonobjc.FoundationNSFileManagerCreateDirectoryAtPathAttributes(NSString, NSDictionary)

Creates a directory (without contents) at a given path with given attributes. (Deprecated in Mac OS X v10.5. Use createDirectoryAtPath:withIntermediateDirectories:attributes:error: instead.)

Original signature is '- (BOOL)createDirectoryAtPath:(NSString *)path attributes:(NSDictionary *)attributes'

Available in Mac OS X v10.0 and later.

Declaration Syntax
C#Visual BasicVisual C++
[ObsoleteAttribute("Deprecated in Mac OS X v10.5. Use createDirectoryAtPath:withIntermediateDirectories:attributes:error: instead.")]
public virtual bool CreateDirectoryAtPathAttributes(
	NSString path,
	NSDictionary attributes
)
<ObsoleteAttribute("Deprecated in Mac OS X v10.5. Use createDirectoryAtPath:withIntermediateDirectories:attributes:error: instead.")> _
Public Overridable Function CreateDirectoryAtPathAttributes ( _
	path As NSString, _
	attributes As NSDictionary _
) As Boolean
[ObsoleteAttribute(L"Deprecated in Mac OS X v10.5. Use createDirectoryAtPath:withIntermediateDirectories:attributes:error: instead.")]
public:
virtual bool CreateDirectoryAtPathAttributes(
	NSString^ path, 
	NSDictionary^ attributes
)
Parameters
path (NSString)
The path at which to create the new directory. The directory to be created must not yet exist, but its parent directory must exist.
attributes (NSDictionary)
The file attributes for the new directory. The attributes you can set are owner and group numbers, file permissions, and modification date. If you specify nil for attributes, default values for these attributes are set (particularly write access for the creator and read access for others). The “Constants” section lists the global constants used as keys in the attributes dictionary. Some of the keys, such as NSFileHFSCreatorCode and NSFileHFSTypeCode, do not apply to directories.
Return Value
YES if the operation was successful or the directory already exists, otherwise 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)