MonobjcMonobjc Documented Class Library
CreateDirectoryAtPathWithIntermediateDirectoriesAttributesError Method (path, createIntermediates, attributes, error)
NamespacesMonobjc.FoundationNSFileManagerCreateDirectoryAtPathWithIntermediateDirectoriesAttributesError(NSString, Boolean, NSDictionary, NSError%)

Creates a directory with given attributes at a specified path.

Original signature is '- (BOOL)createDirectoryAtPath:(NSString *)path withIntermediateDirectories:(BOOL)createIntermediates attributes:(NSDictionary *)attributes error:(NSError **)error'

Available in Mac OS X v10.5 and later.

Declaration Syntax
C#Visual BasicVisual C++
public virtual bool CreateDirectoryAtPathWithIntermediateDirectoriesAttributesError(
	NSString path,
	bool createIntermediates,
	NSDictionary attributes,
	out NSError error
)
Public Overridable Function CreateDirectoryAtPathWithIntermediateDirectoriesAttributesError ( _
	path As NSString, _
	createIntermediates As Boolean, _
	attributes As NSDictionary, _
	<OutAttribute> ByRef error As NSError _
) As Boolean
public:
virtual bool CreateDirectoryAtPathWithIntermediateDirectoriesAttributesError(
	NSString^ path, 
	bool createIntermediates, 
	NSDictionary^ attributes, 
	[OutAttribute] NSError^% error
)
Parameters
path (NSString)
The path at which to create the new directory. The directory to be created must not yet exist.
createIntermediates (Boolean)
If YES, then the method will also create any necessary intermediate directories; if NO, then the method fails if any parent of the directory to be created does not exist. In addition, if you pass NO for this parameter, the directory must not exist at the time this call is made.
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, the directory is created according to the umask of the process. 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.
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 or 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)