+static void adddirentry(stringlist_t *list, const char *path, const char *name)
+{
+ if (strcmp(name, ".") && strcmp(name, ".."))
+ {
+ char temp[MAX_OSPATH];
+ dpsnprintf( temp, sizeof( temp ), "%s%s", path, name );
+ stringlistappend(list, temp);
+ }
+}