Java.IO.File.Mkdir Method
Creates the directory named by this file, assuming its parents exist.

Syntax

[Android.Runtime.Register("mkdir", "()Z", "GetMkdirHandler")]
public virtual bool Mkdir ()

Returns

Documentation for this section has not yet been entered.

Remarks

Creates the directory named by this file, assuming its parents exist. Use File.Mkdirs if you also want to create missing parents.

Note that this method does not throw IOException on failure. Callers must check the return value. Note also that this method returns false if the directory already existed. If you want to know whether the directory exists on return, either use (f.mkdir() || f.isDirectory()) or simply ignore the return value from this method and simply call File.IsDirectory.

[Android Documentation]

Requirements

Namespace: Java.IO
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1