Re: [PATCH 1/2] virfile: Introduce virDirIsEmpty()

2023-07-21 Thread Ján Tomko
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 --- src/libvirt_private.syms | 1 + src/util/virfile.c | 39

[PATCH 1/2] virfile: Introduce virDirIsEmpty()

2023-07-21 Thread Michal Privoznik
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 --- src/libvirt_private.syms | 1 + src/util/virfile.c | 39 +++ src/util/virfile.h