is `path = file.path.to_s` needed?