Check if the given path exists and is a directory Retrieve the list of files using listFiles() For each file: ...