IFileVisitor.PreVisitDirectory(Object, IBasicFileAttributes) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Invoked for a directory before entries in the directory are visited.
[Android.Runtime.Register("preVisitDirectory", "(Ljava/lang/Object;Ljava/nio/file/attribute/BasicFileAttributes;)Ljava/nio/file/FileVisitResult;", "GetPreVisitDirectory_Ljava_lang_Object_Ljava_nio_file_attribute_BasicFileAttributes_Handler:Java.Nio.FileNio.IFileVisitorInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=26)]
public Java.Nio.FileNio.FileVisitResult? PreVisitDirectory (Java.Lang.Object? dir, Java.Nio.FileNio.Attributes.IBasicFileAttributes? attrs);
[<Android.Runtime.Register("preVisitDirectory", "(Ljava/lang/Object;Ljava/nio/file/attribute/BasicFileAttributes;)Ljava/nio/file/FileVisitResult;", "GetPreVisitDirectory_Ljava_lang_Object_Ljava_nio_file_attribute_BasicFileAttributes_Handler:Java.Nio.FileNio.IFileVisitorInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=26)>]
abstract member PreVisitDirectory : Java.Lang.Object * Java.Nio.FileNio.Attributes.IBasicFileAttributes -> Java.Nio.FileNio.FileVisitResult
Parameters
- dir
- Object
a reference to the directory
- attrs
- IBasicFileAttributes
the directory's basic attributes
Returns
the visit result
- Attributes
Remarks
Invoked for a directory before entries in the directory are visited.
If this method returns FileVisitResult#CONTINUE CONTINUE
, then entries in the directory are visited. If this method returns FileVisitResult#SKIP_SUBTREE SKIP_SUBTREE
or FileVisitResult#SKIP_SIBLINGS SKIP_SIBLINGS
then entries in the directory (and any descendants) will not be visited.
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.