Sdílet prostřednictvím


Files.GetFileStore(IPath) Method

Definition

Returns the FileStore representing the file store where a file is located.

[Android.Runtime.Register("getFileStore", "(Ljava/nio/file/Path;)Ljava/nio/file/FileStore;", "", ApiSince=26)]
public static Java.Nio.FileNio.FileStore? GetFileStore (Java.Nio.FileNio.IPath? path);
[<Android.Runtime.Register("getFileStore", "(Ljava/nio/file/Path;)Ljava/nio/file/FileStore;", "", ApiSince=26)>]
static member GetFileStore : Java.Nio.FileNio.IPath -> Java.Nio.FileNio.FileStore

Parameters

path
IPath

the path to the file

Returns

the file store where the file is stored

Attributes

Remarks

Returns the FileStore representing the file store where a file is located.

Once a reference to the FileStore is obtained it is implementation specific if operations on the returned FileStore, or FileStoreAttributeView objects obtained from it, continue to depend on the existence of the file. In particular the behavior is not defined for the case that the file is deleted or moved to a different file store.

Java documentation for java.nio.file.Files.getFileStore(java.nio.file.Path).

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