FileSystemProvider.CreateDirectory(IPath, IFileAttribute[]) Method

Definition

Creates a new directory.

[Android.Runtime.Register("createDirectory", "(Ljava/nio/file/Path;[Ljava/nio/file/attribute/FileAttribute;)V", "GetCreateDirectory_Ljava_nio_file_Path_arrayLjava_nio_file_attribute_FileAttribute_Handler", ApiSince=26)]
public abstract void CreateDirectory (Java.Nio.FileNio.IPath? dir, params Java.Nio.FileNio.Attributes.IFileAttribute[]? attrs);
[<Android.Runtime.Register("createDirectory", "(Ljava/nio/file/Path;[Ljava/nio/file/attribute/FileAttribute;)V", "GetCreateDirectory_Ljava_nio_file_Path_arrayLjava_nio_file_attribute_FileAttribute_Handler", ApiSince=26)>]
abstract member CreateDirectory : Java.Nio.FileNio.IPath * Java.Nio.FileNio.Attributes.IFileAttribute[] -> unit

Parameters

dir
IPath

the directory to create

attrs
IFileAttribute[]

an optional list of file attributes to set atomically when creating the directory

Attributes

Remarks

Java documentation for java.nio.file.spi.FileSystemProvider.createDirectory(java.nio.file.Path, java.nio.file.attribute.FileAttribute).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to