Does anyone know if there is a function in java with takes as an argument a path of a directory and returns all the including files as array

Thank you