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 [change in craft-parts API](https://github.com/canonical/craft-parts/pull/1424).
---
- [X] I've followed the [contribution guidelines](https://github.com/canonical/snapcraft/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.
- [ ] I've updated the relevant release notes.
Evaluation history
No evaluation history available.