Win a copy of Java Concurrency Live Lessons this week in the Threads forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Question about Files.WalkFileTree method  RSS feed

 
Nick Widelec
Ranch Hand
Posts: 226
Eclipse IDE Firefox Browser Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The first just requires the starting directory and a FileVisitor object i.e.:


the second:


In a real application I would like to use the following
This works. However it appears to be only FOLLOW_LINKS as a possible choice of a FileVisitOption.
Therefore I wonder why in the second walkFileTree method, the second parameter is a set of FileVisitOption... I mean there is only one possible choice which is FOLLOW_LINKS. Am I missing something?
Thanks in advance.
 
Stephan van Hulst
Saloon Keeper
Posts: 7006
110
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In the future, more values may be added.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!