From 32c16800be03314346c0c769e5b5bce3a9c305ac Mon Sep 17 00:00:00 2001 From: Joursoir Date: Sun, 12 Dec 2021 21:14:42 +0300 Subject: cmds: make deletion of file/directory --- Library/UefiShellUfmCommandLib/cmds.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'Library/UefiShellUfmCommandLib/cmds.h') diff --git a/Library/UefiShellUfmCommandLib/cmds.h b/Library/UefiShellUfmCommandLib/cmds.h index d819d47..f58cdea 100644 --- a/Library/UefiShellUfmCommandLib/cmds.h +++ b/Library/UefiShellUfmCommandLib/cmds.h @@ -4,6 +4,18 @@ #include #include +/* + * Deletes a node including subdirectories + * + * node: the node to start deleting with + * + * return: EFI_SUCCESS The operation was successful + EFI_ACCESS_DENIED A file was read only + EFI_ABORTED The abort was received + EFI_DEVICE_ERROR A device error occurred reading this node +*/ +EFI_STATUS delete_file(EFI_SHELL_FILE_INFO *node); + /* * Creates one or more directories. * -- cgit v1.2.3-18-g5258