Edit

Share via


NSFileManager.CreateDirectory Method

Definition

Overloads

CreateDirectory(String, Boolean, NSFileAttributes, NSError)
CreateDirectory(String, Boolean, NSDictionary, NSError)
CreateDirectory(String, Boolean, NSFileAttributes)
CreateDirectory(NSUrl, Boolean, NSDictionary, NSError)

Attemps to create the specified directory, returning success or failure.

CreateDirectory(String, Boolean, NSFileAttributes, NSError)

public bool CreateDirectory (string path, bool createIntermediates, Foundation.NSFileAttributes attributes, out Foundation.NSError error);
member this.CreateDirectory : string * bool * Foundation.NSFileAttributes *  -> bool

Parameters

path
String
createIntermediates
Boolean
attributes
NSFileAttributes
error
NSError

Returns

Applies to

CreateDirectory(String, Boolean, NSDictionary, NSError)

[Foundation.Export("createDirectoryAtPath:withIntermediateDirectories:attributes:error:")]
public virtual bool CreateDirectory (string path, bool createIntermediates, Foundation.NSDictionary attributes, out Foundation.NSError error);
abstract member CreateDirectory : string * bool * Foundation.NSDictionary *  -> bool
override this.CreateDirectory : string * bool * Foundation.NSDictionary *  -> bool

Parameters

path
String
createIntermediates
Boolean
attributes
NSDictionary

To be added.

This parameter can be null.

error
NSError

Returns

Attributes

Applies to

CreateDirectory(String, Boolean, NSFileAttributes)

public bool CreateDirectory (string path, bool createIntermediates, Foundation.NSFileAttributes attributes);
member this.CreateDirectory : string * bool * Foundation.NSFileAttributes -> bool

Parameters

path
String
createIntermediates
Boolean
attributes
NSFileAttributes

Returns

Applies to

CreateDirectory(NSUrl, Boolean, NSDictionary, NSError)

Attemps to create the specified directory, returning success or failure.

[Foundation.Export("createDirectoryAtURL:withIntermediateDirectories:attributes:error:")]
public virtual bool CreateDirectory (Foundation.NSUrl url, bool createIntermediates, Foundation.NSDictionary attributes, out Foundation.NSError error);
abstract member CreateDirectory : Foundation.NSUrl * bool * Foundation.NSDictionary *  -> bool
override this.CreateDirectory : Foundation.NSUrl * bool * Foundation.NSDictionary *  -> bool

Parameters

url
NSUrl
createIntermediates
Boolean
attributes
NSDictionary

To be added.

This parameter can be null.

error
NSError

Returns

Attributes

Applies to