mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-03 07:35:48 +08:00
refs #209, fileExists method (remote enabled)
This commit is contained in:
@@ -99,4 +99,13 @@ namespace BlackCore
|
||||
return QFile::remove(fileName);
|
||||
}
|
||||
|
||||
/*
|
||||
* Check file
|
||||
*/
|
||||
bool CContextApplication::existsFile(const QString &fileName)
|
||||
{
|
||||
if (fileName.isEmpty()) return false;
|
||||
return QFile::exists(fileName);
|
||||
}
|
||||
|
||||
} // namespace
|
||||
|
||||
Reference in New Issue
Block a user