Udostępnij za pośrednictwem


StorageVolume.Directory Property

Definition

Returns the directory where this volume is currently mounted.

public Java.IO.File? Directory { [Android.Runtime.Register("getDirectory", "()Ljava/io/File;", "", ApiSince=30)] get; }
[<get: Android.Runtime.Register("getDirectory", "()Ljava/io/File;", "", ApiSince=30)>]
member this.Directory : Java.IO.File

Property Value

directory where this volume is mounted, or null if the volume is not currently mounted.

Attributes

Remarks

Returns the directory where this volume is currently mounted.

Direct filesystem access via this path has significant emulation overhead, and apps are instead strongly encouraged to interact with media on storage volumes via the MediaStore APIs.

This directory does not give apps any additional access beyond what they already have via MediaStore.

Java documentation for android.os.storage.StorageVolume.getDirectory().

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