| 261 | |
| 262 | |
| 263 | BOOLEAN |
| 264 | OsPathExists ( |
| 265 | IN CHAR8 *InputFileName |
| 266 | ) |
| 267 | /*++ |
| 268 | |
| 269 | Routine Description: |
| 270 | |
| 271 | Checks if a file exists |
| 272 | |
| 273 | Arguments: |
| 274 | |
| 275 | InputFileName The name of the file to check for existence |
| 276 | |
| 277 | Returns: |
| 278 | |
| 279 | TRUE The file exists |
| 280 | FALSE The file does not exist |
| 281 | |
| 282 | --*/ |
| 283 | { |
| 284 | FILE *InputFile; |
| 285 | InputFile = fopen (LongFilePath (InputFileName), "rb"); |
| 286 | if (InputFile == NULL) { |
| 287 | return FALSE; |
| 288 | } else { |
| 289 | fclose (InputFile); |
| 290 | return TRUE; |
| 291 | } |
| 292 | } |
| 293 | |
| 294 | |
| 295 |
no test coverage detected