Returns True if given filepath starts with a Windows drive letter >>> isWindowsDriveLetterPath('C:\\boot.ini') True >>> isWindowsDriveLetterPath('/var/log/apache.log') False
(filepath)
| 2297 | return commonWords |
| 2298 | |
| 2299 | def isWindowsDriveLetterPath(filepath): |
| 2300 | """ |
| 2301 | Returns True if given filepath starts with a Windows drive letter |
| 2302 | |
| 2303 | >>> isWindowsDriveLetterPath('C:\\boot.ini') |
| 2304 | True |
| 2305 | >>> isWindowsDriveLetterPath('/var/log/apache.log') |
| 2306 | False |
| 2307 | """ |
| 2308 | |
| 2309 | return re.search(r"\A[\w]\:", filepath) is not None |
| 2310 | |
| 2311 | def posixToNtSlashes(filepath): |
| 2312 | """ |
no test coverage detected
searching dependent graphs…