]> xenbits.xensource.com Git - libvirt.git/commit
virfile: Introduce virDirIsEmpty()
authorMichal Privoznik <mprivozn@redhat.com>
Fri, 21 Jul 2023 08:41:35 +0000 (10:41 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Fri, 21 Jul 2023 12:55:18 +0000 (14:55 +0200)
commit1b33578854f2d746a9f39cc50ebb6d2b21fd6037
tree027ae943201b4b4265808e8558e0926be7d4ad26
parentac9c9b621fe6c4828fa7a085a70cbefceab8b635
virfile: Introduce virDirIsEmpty()

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@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/libvirt_private.syms
src/util/virfile.c
src/util/virfile.h