File toFile({Directory? parentDirectory}) { var path = joinPaths(parentDirectory?.path, filePath); return File(path); }