(path)
return len(p) == 1 and p[0] in '/\\'
Test whether a path is a mount point (defined as root of drive)
Test whether a path is a mount point (defined as root of drive)
Test whether a path is a mount point ( defined as root of drive )
def ismount(path):
    """Test whether a path is a mount point (defined as root of drive)"""
    unc, rest = splitunc(path)
    if unc:
        return rest in ("", "/", "\\")
    p = splitdrive(path)[1]
    return len(p) == 1 and p[0] in '/\\'
def ismount ( path ) : unc , rest = splitunc ( path ) if unc : return rest in ( "" , "/" , "\\" ) p = splitdrive ( path ) [ 1 ] return len ( p ) == 1 and p [ 0 ] in '/\\'