java: search file according to its name in directory and subdirectories

前端 未结 5 1000
庸人自扰
庸人自扰 2021-02-03 13:50

I need a to find file according to its name in directory tree. And then show a path to this file. I found something like this, but it search according extension. Could anybody h

5条回答
  •  执笔经年
    2021-02-03 13:57

    I don't really know what FileUtils does, but how about changing "txt" in extenstions to "yourfile.whatever"?

提交回复
热议问题