(filepath)
return re.search("\A[\w]\:", filepath) is not None
Returns True if given filepath starts with a Windows drive letter

    >>> isWindowsDriveLetterPath('C:\\boot.ini')
    True
    >>> isWindowsDriveLetterPath('/var/log/apache.log')
    False
Returns True if given filepath starts with a Windows drive letter
Returns True if given filepath starts with a Windows drive letter
def isWindowsDriveLetterPath(filepath):
    """
    Returns True if given filepath starts with a Windows drive letter

    >>> isWindowsDriveLetterPath('C:\\boot.ini')
    True
    >>> isWindowsDriveLetterPath('/var/log/apache.log')
    False
    """

    return re.search("\A[\w]\:", filepath) is not None
def isWindowsDriveLetterPath ( filepath ) : return re . search ( "\A[\w]\:" , filepath ) is not None