MCPcopy Create free account
hub / github.com/CloverHackyColor/CloverBootloader / OsPathExists

Function OsPathExists

BaseTools/Source/C/Common/OsPath.c:263–292  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

261
262
263BOOLEAN
264OsPathExists (
265 IN CHAR8 *InputFileName
266 )
267/*++
268
269Routine Description:
270
271 Checks if a file exists
272
273Arguments:
274
275 InputFileName The name of the file to check for existence
276
277Returns:
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

Callers 1

Calls 3

fopenFunction · 0.85
fcloseFunction · 0.85
LongFilePathFunction · 0.70

Tested by

no test coverage detected