Lines Matching refs:dir_path
368 choose_random_file_matching(const char *dir_path,
370 const char *dir_path))
377 dir = opendir(dir_path);
387 if (!predicate(entry, dir_path))
407 if (!predicate(entry, dir_path))
420 if (asprintf(&filename, "%s/%s", dir_path, entry->d_name) < 0)
505 char *dir_path;
516 if (asprintf(&dir_path, "%s/%c%c", cache->path, hex[a], hex[b]) < 0)
519 size = unlink_random_file_from_directory(dir_path);
521 free(dir_path);
535 dir_path = choose_random_file_matching(cache->path,
537 if (dir_path == NULL)
540 size = unlink_random_file_from_directory(dir_path);
542 free(dir_path);