Language

SimpleFileVisitor.PostVisitDirectory(Object, IOException) Method

Definition

Invoked for a directory after entries in the directory, and all of their descendants, have been visited.

[Android.Runtime.Register("postVisitDirectory", "(Ljava/lang/Object;Ljava/io/IOException;)Ljava/nio/file/FileVisitResult;", "GetPostVisitDirectory_Ljava_lang_Object_Ljava_io_IOException_Handler", ApiSince=26)]
public virtual Java.Nio.FileNio.FileVisitResult? PostVisitDirectory(Java.Lang.Object? dir, Java.IO.IOException? exc);
[<Android.Runtime.Register("postVisitDirectory", "(Ljava/lang/Object;Ljava/io/IOException;)Ljava/nio/file/FileVisitResult;", "GetPostVisitDirectory_Ljava_lang_Object_Ljava_io_IOException_Handler", ApiSince=26)>]
abstract member PostVisitDirectory : Java.Lang.Object * Java.IO.IOException -> Java.Nio.FileNio.FileVisitResult
override this.PostVisitDirectory : Java.Lang.Object * Java.IO.IOException -> Java.Nio.FileNio.FileVisitResult

Parameters

dir
Object

a reference to the directory

exc
IOException

null if the iteration of the directory completes without an error; otherwise the I/O exception that caused the iteration of the directory to complete prematurely

Returns

the visit result

Implements

Attributes

Remarks

Invoked for a directory after entries in the directory, and all of their descendants, have been visited.

Unless overridden, this method returns FileVisitResult#CONTINUE CONTINUE if the directory iteration completes without an I/O exception; otherwise this method re-throws the I/O exception that caused the iteration of the directory to terminate prematurely.

Java documentation for java.nio.file.SimpleFileVisitor.postVisitDirectory(T, java.io.IOException).

Java reference for java.nio.file.SimpleFileVisitor.postVisitDirectory.

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