image

the sleepy snake

index :: path :: replace_dir

replace_dir(path, dirname=)

Replaces the directory part of a path with 'dirname' and returns the resulting path