Home | History | Annotate | Download | only in lib

Lines Matching full:path

23 // Create a dirtree node from a path, with stat and symlink info.
61 char *path = parent ? dirtree_path(parent, 0) : "";
63 perror_msg("%s%s%s", path, parent ? "/" : "", name);
64 if (parent) free(path);
71 // Return path to this node, assembled recursively.
74 // to return the length of the path, or a value greater than 0 to allocate
79 char *path;
83 path = xmalloc(*plen);
85 return path;
89 path = dirtree_path(node->parent, &len);
90 if (len && path[len-1] != '/') path[len++]='/';
91 len = (stpcpy(path+len, node->name) - path);
94 return path;
147 char *path = dirtree_path(node, 0);
148 perror_msg("No %s", path);
149 free(path);
188 // Create dirtree from path, using callback to filter nodes.
192 struct dirtree *dirtree_read(char *path, int (*callback)(struct dirtree *node))
194 struct dirtree *root = dirtree_start(path, 0);