1
0
mirror of https://github.com/facebook/zstd.git synced 2026-01-06 11:21:19 +03:00

moved signifcant operations to fileio.c

This commit is contained in:
Paul Cruz
2017-06-20 12:43:10 -07:00
parent c594507871
commit bda57754a2
3 changed files with 24 additions and 19 deletions

View File

@@ -676,23 +676,8 @@ int main(int argCount, const char* argv[])
}
#endif
if (operation == zom_list) {
g_displayOut = stdout;
if(filenameIdx==0){
DISPLAY("No files given\n");
CLEAN_RETURN(0);
}
DISPLAY("===========================================\n");
DISPLAY("Printing information about compressed files\n");
DISPLAY("===========================================\n");
DISPLAY("Number of files listed: %d\n", filenameIdx);
{
int error = 0;
unsigned u;
for (u=0; u<filenameIdx;u++) {
error |= FIO_listFile(filenameTable[u], g_displayLevel);
}
CLEAN_RETURN(error);
}
int const ret = FIO_listMultipleFiles(filenameIdx, filenameTable, g_displayLevel);
CLEAN_RETURN(ret);
}
/* Check if benchmark is selected */
if (operation==zom_bench) {