Use the fileToPath(..) to de-absolute the file.list() results.