Save the date! Android Dev Summit is coming to Mountain View, CA on November 7-8, 2018.

FileVisitResult

public final enum FileVisitResult
extends Enum<FileVisitResult>

java.lang.Object
   ↳ java.lang.Enum<java.nio.file.FileVisitResult>
     ↳ java.nio.file.FileVisitResult


The result type of a FileVisitor.

Summary

Enum values

FileVisitResult  CONTINUE

Continue. 

FileVisitResult  SKIP_SIBLINGS

Continue without visiting the siblings of this file or directory. 

FileVisitResult  SKIP_SUBTREE

Continue without visiting the entries in this directory. 

FileVisitResult  TERMINATE

Terminate. 

Public methods

static FileVisitResult valueOf(String name)
static final FileVisitResult[] values()

Inherited methods

Enum values

CONTINUE

added in API level 26
public static final FileVisitResult CONTINUE

Continue. When returned from a preVisitDirectory method then the entries in the directory should also be visited.

SKIP_SIBLINGS

added in API level 26
public static final FileVisitResult SKIP_SIBLINGS

Continue without visiting the siblings of this file or directory. If returned from the preVisitDirectory method then the entries in the directory are also skipped and the postVisitDirectory method is not invoked.

SKIP_SUBTREE

added in API level 26
public static final FileVisitResult SKIP_SUBTREE

Continue without visiting the entries in this directory. This result is only meaningful when returned from the preVisitDirectory method; otherwise this result type is the same as returning CONTINUE.

TERMINATE

added in API level 26
public static final FileVisitResult TERMINATE

Terminate.

Public methods

valueOf

added in API level 26
public static FileVisitResult valueOf (String name)

Parameters
name String

Returns
FileVisitResult

values

added in API level 26
public static final FileVisitResult[] values ()

Returns
FileVisitResult[]