image

the sleepy snake

index :: path :: replace_url

replace_url(path, url=)

Replaces the drive part of a path and returns the resulting path

pathfilepath
urlthe new URL part ('http:' --no slashes)

Note: if URL is empty string the url part is removed, if the path has no url part the url part is added