X-Git-Url: https://wimlib.net/git/?p=wimlib;a=blobdiff_plain;f=programs%2Fimagex.c;h=114424e396d09630e7b4f183cfeedd8c3dd185d2;hp=15f68d1aa9fb1c330836f25975e176796efb3f3d;hb=4d9742676317b6c0d62739bc7167ea70adf95440;hpb=4ef92180bc9fd850f60433d1f81e5e9647b0fe86 diff --git a/programs/imagex.c b/programs/imagex.c index 15f68d1a..114424e3 100644 --- a/programs/imagex.c +++ b/programs/imagex.c @@ -1968,6 +1968,13 @@ out: return ret; } +static int +print_full_path(const struct wimlib_wim_dentry *wdentry, void *_ignore) +{ + tprintf(T("%"TS"\n"), wdentry->full_path); + return 0; +} + /* Print the files contained in an image(s) in a WIM file. */ static int imagex_dir(int argc, tchar **argv) @@ -2014,7 +2021,9 @@ imagex_dir(int argc, tchar **argv) image = 1; } - ret = wimlib_print_files(w, image); + ret = wimlib_iterate_dir_tree(w, image, T(""), + WIMLIB_ITERATE_DIR_TREE_FLAG_RECURSIVE, + print_full_path, NULL); out: wimlib_free(w); return ret;