std.fs.non_empty_dir

std.fs

non_empty_dir(path) -> is_non_empty, err

Check if a directory is non-empty

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