chore: use pathlib to interact with craft-parts
Metadata
Current evaluation
No evaluation has been recorded for this issue yet.
Issue body
Adjust calls to functions of craft-parts to use pathlib after [changes in craft-parts API](https://github.com/canonical/craft-parts/pull/1424).
---
- [X] I've followed the [contribution guidelines](https://github.com/canonical/rockcraft/blob/main/CONTRIBUTING.md).
- [X] I've signed the [CLA](http://www.ubuntu.com/legal/contributors/).
- [X] I've successfully run `make lint && make test`.
- [ ] I've added or updated any relevant documentation.
Evaluation history
No evaluation history available.