1//! Functions to check some properties of files and directories.
2use std::{fs, io, path::Path};
34/// Checks if the given folder is empty.
5pub fn is_folder_empty(path: impl AsRef<Path>) -> io::Result<bool> {
6Ok(fs::read_dir(path)?.take(1).count() == 0)
7}