mutapath.MutaPath.mutate

MutaPath.mutate()[source]

Create a mutable context for this immutable path.

Example

>>> with Path('/home/doe/folder/sub').mutate() as mut:
...     mut.name = "top"
Path('/home/doe/folder/top')