mirror of
https://github.com/QRouland/UTPass.git
synced 2025-06-24 22:42:28 +00:00
Some improvements
This commit is contained in:
@ -59,9 +59,9 @@ bool Utils::rmDir(QUrl dir_url)
|
||||
|
||||
bool Utils::fileExists(QUrl path)
|
||||
{
|
||||
QString p = path.toLocalFile();
|
||||
QString p = path.toString();
|
||||
auto ret = QFileInfo::exists(p) && QFileInfo(p).isFile();
|
||||
qDebug() << "[Utils]" << path << " existing file :" << ret;
|
||||
qDebug() << "[Utils]" << path << "existing file :" << ret;
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user