def url_from_path(path):
if os.sep != '<STR_LIT:/>':<EOL><INDENT>path = '<STR_LIT:/>'.join(path.split(os.sep))<EOL><DEDENT>return quote(path)<EOL>
Transform path to url, converting backslashes to slashes if needed.