MCPcopy Index your code
hub / github.com/git/git / is_empty_dir

Function is_empty_dir

dir.c:3255–3270  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3253}
3254
3255int is_empty_dir(const char *path)
3256{
3257 DIR *dir = opendir(path);
3258 struct dirent *e;
3259 int ret = 1;
3260
3261 if (!dir)
3262 return 0;
3263
3264 e = readdir_skip_dot_and_dotdot(dir);
3265 if (e)
3266 ret = 0;
3267
3268 closedir(dir);
3269 return ret;
3270}
3271
3272char *git_url_basename(const char *repo, int is_bundle, int is_bare)
3273{

Callers 10

bad_to_remove_submoduleFunction · 0.85
submodule_move_headFunction · 0.85
check_candidate_pathFunction · 0.85
cmd_cloneFunction · 0.85
clone_submoduleFunction · 0.85
check_local_modFunction · 0.85

Calls 3

opendirFunction · 0.85
closedirFunction · 0.85

Tested by

no test coverage detected