MCPcopy Create free account
hub / github.com/F-Stack/f-stack / getFileInfo_fileConfirmed

Function getFileInfo_fileConfirmed

freebsd/contrib/zstd/programs/fileio.c:2904–2917  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2902
2903
2904static InfoError
2905getFileInfo_fileConfirmed(fileInfo_t* info, const char* inFileName)
2906{
2907 InfoError status;
2908 FILE* const srcFile = FIO_openSrcFile(inFileName);
2909 ERROR_IF(srcFile == NULL, info_file_error, "Error: could not open source file %s", inFileName);
2910
2911 info->compressedSize = UTIL_getFileSize(inFileName);
2912 status = FIO_analyzeFrames(info, srcFile);
2913
2914 fclose(srcFile);
2915 info->nbFiles = 1;
2916 return status;
2917}
2918
2919
2920/** getFileInfo() :

Callers 1

getFileInfoFunction · 0.85

Calls 3

FIO_openSrcFileFunction · 0.85
UTIL_getFileSizeFunction · 0.85
FIO_analyzeFramesFunction · 0.85

Tested by

no test coverage detected