Lines Matching refs:path
10 to a file system path; not recommended for general use."""
23 # path is something like ////host/path/on/remote/host
24 # convert this to \\host\path\on\remote\host
25 # (notice halving of slashes at the start of the path)
36 path = drive + ':'
39 path = path + '\\' + urllib.parse.unquote(comp)
41 if path.endswith(':') and url.endswith('/'):
42 path += '\\'
43 return path
46 """OS-specific conversion from a file system path to a relative URL
60 raise OSError('Bad path: ' + p)
64 # path is something like \\host\path\on\remote\host
65 # convert this to ////host/path/on/remote/host
66 # (notice doubling of slashes at the start of the path)
72 error = 'Bad path: ' + p
77 path = '///' + drive + ':'
80 path = path + '/' + urllib.parse.quote(comp)
81 return path