list_dir
static int list_dir(FILE*, const char*, int);
list_dir(out, files[i], flags | LS_DIRS | LS_EXTRA_BLANK);