mutapath.Path.with_name

Path.with_name(new_name) → Path[source]

See also

pathlib.PurePath.with_name()