Given the below directory structure:
/dir1
/dir1/dir2
/dir1/dir2/file1
/dir1/dir2/file2
/dir1/dir2/dirA/file3
someFunction("dir2")
desired output:
dir2/file1
dir2/file2
dir2/dirA/file3
I am using FileUtils.listFiles and Paths and then String manipulation, but wondering if better way. Just seems convoluted.
The Unix command find dir2 is pretty spot on.