fix: Make the 'list' example show more metadata
This commit is contained in:
parent
7571ef42c6
commit
320231c70b
@ -24,9 +24,9 @@ int main(int argc, char** argv)
|
|||||||
}
|
}
|
||||||
struct minitar_entry entry;
|
struct minitar_entry entry;
|
||||||
do {
|
do {
|
||||||
if (minitar_read_entry(&mp, &entry) == 0) { printf("%s\n", entry.metadata.path); }
|
if (minitar_read_entry(&mp, &entry) == 0) { printf("%s (%s, %zu bytes, mode %o)\n", entry.metadata.path, entry.metadata.name, entry.metadata.size, entry.metadata.mode); }
|
||||||
else
|
else
|
||||||
break;
|
break;
|
||||||
} while (1);
|
} while (1);
|
||||||
minitar_close(&mp);
|
minitar_close(&mp);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user