Stay organized with collections
Save and categorize content based on your preferences.
AI-generated Key Takeaways
FileVisitResult is an enum that defines the outcome of a file visit operation by a FileVisitor.
It's primarily used with Files.walkFileTree for controlling directory traversal.
The enum provides four key values: CONTINUE, SKIP_SIBLINGS, SKIP_SUBTREE, and TERMINATE, each dictating how the file tree walk should proceed.
These values allow developers to fine-tune file and directory traversal behavior during operations like searching, copying, or deleting files within a file system.
Compares this object with the specified object for order.
Enum Values
public
static
final
FileVisitResult
CONTINUE
Continue. When returned from a preVisitDirectory method then the entries in the directory should also
be visited.
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.
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-07-10 UTC."],[],[]]