| 304 | } |
| 305 | |
| 306 | BOOL IsValidSubPath(CString strPath) |
| 307 | { |
| 308 | int nToken = max(strPath.ReverseFind('\\'), strPath.ReverseFind('/')); |
| 309 | |
| 310 | if (nToken == strPath.GetLength()) |
| 311 | return IsValidSubPath(strPath.Left(nToken - 1)); |
| 312 | |
| 313 | if (nToken > 0) |
| 314 | { |
| 315 | if (!IsValidName(strPath.Mid(nToken + 1))) |
| 316 | return FALSE; |
| 317 | |
| 318 | return IsValidSubPath(strPath.Left(nToken)); |
| 319 | } |
| 320 | |
| 321 | return TRUE; |
| 322 | } |
| 323 | |
| 324 | BOOL IsValidPath(const CString& strPath) |
| 325 | { |
no test coverage detected