Refactor to nio.Path