Udostępnij za pośrednictwem


FileSystemProvider.NewDirectoryStream(IPath, IDirectoryStreamFilter) Method

Definition

Opens a directory, returning a DirectoryStream to iterate over the entries in the directory.

[Android.Runtime.Register("newDirectoryStream", "(Ljava/nio/file/Path;Ljava/nio/file/DirectoryStream$Filter;)Ljava/nio/file/DirectoryStream;", "GetNewDirectoryStream_Ljava_nio_file_Path_Ljava_nio_file_DirectoryStream_Filter_Handler", ApiSince=26)]
public abstract Java.Nio.FileNio.IDirectoryStream? NewDirectoryStream (Java.Nio.FileNio.IPath? dir, Java.Nio.FileNio.IDirectoryStreamFilter? filter);
[<Android.Runtime.Register("newDirectoryStream", "(Ljava/nio/file/Path;Ljava/nio/file/DirectoryStream$Filter;)Ljava/nio/file/DirectoryStream;", "GetNewDirectoryStream_Ljava_nio_file_Path_Ljava_nio_file_DirectoryStream_Filter_Handler", ApiSince=26)>]
abstract member NewDirectoryStream : Java.Nio.FileNio.IPath * Java.Nio.FileNio.IDirectoryStreamFilter -> Java.Nio.FileNio.IDirectoryStream

Parameters

dir
IPath

the path to the directory

filter
IDirectoryStreamFilter

the directory stream filter

Returns

a new and open DirectoryStream object

Attributes

Remarks

Java documentation for java.nio.file.spi.FileSystemProvider.newDirectoryStream(java.nio.file.Path, java.nio.file.Filter).

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