On a Friday in 2023, Michal Privoznik wrote:
There might be cases where we want to know whether given
directory is empty or not. Introduce a helper for that:
virDirIsEmpty().
Signed-off-by: Michal Privoznik <mprivozn(a)redhat.com>
---
src/libvirt_private.syms | 1 +
src/util/virfile.c | 39 +++++++++++++++++++++++++++++++++++++++
src/util/virfile.h | 3 +++
3 files changed, 43 insertions(+)
Reviewed-by: Ján Tomko <jtomko(a)redhat.com>
Jano