Additions to find function in file module.

Adding maxdepth and mindepth functionality to find function in the file module. #15799