From: GN Keshava <keshava.gn@gmail.com>
To: "edk2-devel@lists.01.org" <edk2-devel@lists.01.org>
Subject: Format a volume in UEFI (or delete all files)
Date: Wed, 12 Oct 2016 10:48:54 +0000 [thread overview]
Message-ID: <CABKwMdu6iTg9bVhKXzosfLpmCKOH0Cka=ZBahesri+ZTRTQ2Xw@mail.gmail.com> (raw)
Hi all,
I need to format fs1: (or delete all files and folders in root directory)
from my UEFI application.
I'm able to use file system APIs such as Open, Write or Delete too. But
Delete API needs File (file path) as argument, but what I want is delete
all files (irrespective of file name).
What could be the best method? Is there any API to directly delete all
files? If not, How to go through (Open) all files and delete each?
How I can get each file and folder names in a directory programmatically ?
Thanks.
With regards,
Keshava
next reply other threads:[~2016-10-12 10:49 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-10-12 10:48 GN Keshava [this message]
2016-10-12 14:31 ` Format a volume in UEFI (or delete all files) Laszlo Ersek
2016-10-12 17:23 ` Blibbet
2016-10-12 17:34 ` GN Keshava
2016-10-12 17:40 ` Laszlo Ersek
2016-10-13 1:29 ` GN Keshava
2016-10-13 6:20 ` Michael Zimmermann
2016-10-13 6:26 ` GN Keshava
2016-10-13 8:33 ` Laszlo Ersek
2016-10-13 8:48 ` GN Keshava
2016-10-12 17:41 ` Blibbet
2016-10-12 17:46 ` Richardson, Brian
2016-10-12 17:55 ` Michael Zimmermann
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-list from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CABKwMdu6iTg9bVhKXzosfLpmCKOH0Cka=ZBahesri+ZTRTQ2Xw@mail.gmail.com' \
--to=devel@edk2.groups.io \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox