file object now exposes the path as file.path