Lines Matching refs:unc
52 # volume), or if a pathname after the volume letter and colon / UNC resource
130 # Parse UNC paths
132 """Split a pathname into UNC mount point and relative path specifiers.
134 Return a 2-tuple (unc, rest); either part may be empty.
135 If unc is not empty, it has the form '//host/mount' (or similar
136 using backslashes). unc+rest is always the input path.
137 Paths containing drive letters never have an UNC part.
143 # is a UNC path:
150 ##raise RuntimeError, 'illegal UNC path: "' + p + '"'
220 # or an UNC path with at most a / or \ after the mount point.
224 unc, rest = splitunc(path)
225 if unc:
412 # drive (\dir1\dir2\file) or a UNC filename (\\server\mount\dir1\file). It
504 raise ValueError("Cannot mix UNC and non-UNC paths (%s and %s)"
508 raise ValueError("path is on UNC root %s, start on UNC root %s"