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

def isWindowsDriveLetterPath ( filepath ) : return ( re . search ( '\\A[\\w]\\:' , filepath ) is not None )
returns true if given filepath starts with a windows drive letter .