os.path.splitunc()

os.path.splitunc(path)

Deprecated since version 3.1: Use splitdrive instead.

Split the pathname path into a pair (unc, rest) so that unc is the UNC mount point (such as r'\\host\mount'), if present, and rest the rest of the path (such as r'\path\file.ext'). For paths containing drive letters, unc will always be the empty string.

Availability: Windows.

doc_python
2016-10-07 17:39:25
Comments
Leave a Comment

Please login to continue.