Returns true if a file exits
| 16 | |
| 17 | // Returns true if a file exits |
| 18 | bool FileExists(const wchar* filePath) |
| 19 | { |
| 20 | if(filePath == NULL) |
| 21 | return false; |
| 22 | |
| 23 | DWORD fileAttr = GetFileAttributes(filePath); |
| 24 | if (fileAttr == INVALID_FILE_ATTRIBUTES) |
| 25 | return false; |
| 26 | |
| 27 | return true; |
| 28 | } |
| 29 | |
| 30 | // Retursn true if a directory exists |
| 31 | bool DirectoryExists(const wchar* dirPath) |
no outgoing calls
no test coverage detected