MCPcopy Create free account
hub / github.com/LMMS/lmms / fileCheck

Function fileCheck

src/core/main.cpp:175–191  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

173
174
175void fileCheck( QString &file )
176{
177 QFileInfo fileToCheck( file );
178
179 if( !fileToCheck.size() )
180 {
181 printf( "The file %s does not have any content.\n",
182 file.toUtf8().constData() );
183 exit( EXIT_FAILURE );
184 }
185 else if( fileToCheck.isDir() )
186 {
187 printf( "%s is a directory.\n",
188 file.toUtf8().constData() );
189 exit( EXIT_FAILURE );
190 }
191}
192
193
194

Callers 1

main.cppFile · 0.85

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected