Home | History | Annotate | Download | only in lib

Lines Matching full:path

23 // Create a dirtree node from a path, with stat and symlink info.
58 char *path = parent ? dirtree_path(parent, 0) : "";
60 perror_msg("%s%s%s", path, parent ? "/" : "", name);
61 if (parent) free(path);
68 // Return path to this node, assembled recursively.
71 // to return the length of the path, or a value greater than 0 to allocate
76 char *path;
80 path = xmalloc(*plen);
82 return path;
86 path = dirtree_path(node->parent, &len);
87 if (len && path[len-1] != '/') path[len++]='/';
88 len = (stpcpy(path+len, node->name) - path);
91 return path;
144 char *path = dirtree_path(node, 0);
145 perror_msg("No %s", path);
146 free(path);
185 // Create dirtree from path, using callback to filter nodes.
189 struct dirtree *dirtree_read(char *path, int (*callback)(struct dirtree *node))
191 struct dirtree *root = dirtree_start(path, 0);