OpenCore
1.0.4
OpenCore Bootloader
|
#include <Uefi.h>
#include <Library/BaseLib.h>
#include <Library/DebugLib.h>
#include <Library/DevicePathLib.h>
#include <Library/OcFileLib.h>
#include <Library/MemoryAllocationLib.h>
#include <Library/UefiBootServicesTableLib.h>
#include <Protocol/DevicePath.h>
#include <Protocol/SimpleFileSystem.h>
Go to the source code of this file.
Functions | |
BOOLEAN | OcFileExists (IN CONST EFI_FILE_PROTOCOL *Directory, IN CONST CHAR16 *FileName) |
EFI_STATUS | OcDeleteFile (IN EFI_FILE_PROTOCOL *Directory, IN CONST CHAR16 *FileName) |
Misc file utils.
Copyright (c) 2022, Mike Beaton. All rights reserved.
SPDX-License-Identifier: BSD-3-Clause
Definition in file FileMisc.c.
EFI_STATUS OcDeleteFile | ( | IN EFI_FILE_PROTOCOL * | Directory, |
IN CONST CHAR16 * | FileName ) |
Delete child file relative to source file's location.
Directory | File protocol instance of parent directory. |
FileName | Null-terminated file name or relative path. |
EFI_SUCCESS | File successfully deleted. |
EFI_NOT_FOUND | File was not present. |
other | Other error opening or deleting file. |
Definition at line 49 of file FileMisc.c.
BOOLEAN OcFileExists | ( | IN CONST EFI_FILE_PROTOCOL * | Directory, |
IN CONST CHAR16 * | FileName ) |
Report existence of file relative to source file's location.
Directory | File protocol instance of parent directory. |
FileName | Null-terminated file name or relative path. |
TRUE | when file exists. |
Definition at line 21 of file FileMisc.c.