MCPcopy Create free account
hub / github.com/Segs/Segs / fileExists

Function fileExists

Components/Settings.cpp:27–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25QString Settings::s_default_settings_path = Settings::s_default_tpl_dir + QDir::separator() + QStringLiteral("settings_template.cfg"); // default template from folder 'default_setup'
26
27bool fileExists(const QString &path)
28{
29 QFileInfo check_file(path);
30 // check if file exists and if yes: Is it really a file and not a directory?
31 return check_file.exists() && check_file.isFile() && check_file.size() > 0;
32}
33
34Settings::Settings()
35{

Callers 6

isConnectedMethod · 0.85
mainFunction · 0.85
SettingsMethod · 0.85
setSettingsPathMethod · 0.85
getSettingsTplPathMethod · 0.85

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected