Lines Matching defs:path
21 /* return true if 'path' exists, false otherwise */
22 static bool is_present(const char *path)
26 return !stat(path, &st);
29 /* return true if 'path' exists and it is a directory, false otherwise */
30 static bool is_dir(const char *path)
34 if (stat(path, &st))
87 * Create the parent directory of the given path.
91 static int make_parent_dir(const char *path)
96 strncpy(tmp, path, sizeof(tmp));
105 /* Just in case it is an absolute path */
146 /* Assume directory path already exists. */