void list_dir( char *directory, int depth ) { char path[512]; int dir = dfs_dir_findfirst( directory, path ); do { pr_depth( depth ); printf( "%s\n", path ); if( FILETYPE( dir ) == FLAGS_DIR ) { list_dir( path, depth + 2 ); } } while( (dir = dfs_dir_findnext( path )) != FLAGS_EOF ); }
void pr_leaf (u32 x, unint depth) { pr_depth(depth); printf("%u\n", x); }
void pr_empty (unint depth) { pr_depth(depth); printf("EMPTY\n"); }