Recursively search for a directory in Java

后端 未结 7 2191
深忆病人
深忆病人 2021-01-05 10:45

What is the best way to find a directory with a specific name in Java? The directory that I am looking for can be located either in the current directory or one of its subdi

7条回答
  •  无人及你
    2021-01-05 11:07

    To walk the file tree, FileVisitor interface can be used. Please see the tutorial. Please see Find sample codes also.

提交回复
热议问题