語言

Files.CreateDirectory(IPath, IFileAttribute[]) 方法

定義

建立新目錄。

[Android.Runtime.Register("createDirectory", "(Ljava/nio/file/Path;[Ljava/nio/file/attribute/FileAttribute;)Ljava/nio/file/Path;", "", ApiSince=26)]
public static Java.Nio.FileNio.IPath? 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;)Ljava/nio/file/Path;", "", ApiSince=26)>]
static member CreateDirectory : Java.Nio.FileNio.IPath * Java.Nio.FileNio.Attributes.IFileAttribute[] -> Java.Nio.FileNio.IPath

參數

dir
IPath

建立目錄

attrs
IFileAttribute[]

一個可選的檔案屬性清單,用於建立目錄時原子式設定

傳回

名錄

屬性

備註

Java 文件 java.nio.file.Files.createDirectory(java.nio.file.Path, java.nio.file.attribute.FileAttribute)。

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於