You can turn Path('/etc') into a relative path with the relative_to method: Path('/mnt/chroot') / Path('/etc').relative_to('/').
確定! 回上一頁