Share via


IFileVisitor.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:Java.Nio.FileNio.IFileVisitorInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=26)]
public 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:Java.Nio.FileNio.IFileVisitorInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=26)>]
abstract member 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

Attributes

Remarks

Invoked for a directory after entries in the directory, and all of their descendants, have been visited. This method is also invoked when iteration of the directory completes prematurely (by a #visitFile visitFile method returning FileVisitResult#SKIP_SIBLINGS SKIP_SIBLINGS, or an I/O error when iterating over the directory).

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

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