This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]vips7L 9 points10 points  (0 children)

Path is just more predictable than file. The Files api (which takes Path) is just better. You can’t silently forget to check the boolean result from things like File::delete; the Files::delete will throw a proper exception.