Searched refs:c_dir (Results 1 – 1 of 1) sorted by relevance
47 DIR* c_dir = opendir(dir.c_str()); in DeleteDirectoryContents() local48 if (c_dir == nullptr) { in DeleteDirectoryContents()53 for (struct dirent* de = readdir(c_dir); de != nullptr; de = readdir(c_dir)) { in DeleteDirectoryContents()79 CHECK_EQ(0, closedir(c_dir)) << "Unable to close directory."; in DeleteDirectoryContents()86 DIR* c_dir = opendir(dir); in HasContent() local87 if (c_dir == nullptr) { in HasContent()92 for (struct dirent* de = readdir(c_dir); de != nullptr; de = readdir(c_dir)) { in HasContent()98 CHECK_EQ(0, closedir(c_dir)) << "Unable to close directory."; in HasContent()101 CHECK_EQ(0, closedir(c_dir)) << "Unable to close directory."; in HasContent()