std.fs.empty_dir

std.fs

empty_dir(path) -> is_empty, err

Check if a directory is empty

Returns true if the directory exists and contains no entries (only "." and ".." entries). Returns nil and an error message if the path doesn't exist or isn't a directory.