fix: open paths directly
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
This commit is contained in:
parent
32a9c37ecd
commit
0ccdcd23e3
11 changed files with 52 additions and 93 deletions
|
@ -272,15 +272,19 @@ bool ensureFilePathExists(QString filenamepath)
|
|||
return success;
|
||||
}
|
||||
|
||||
bool ensureFolderPathExists(QString foldernamepath)
|
||||
bool ensureFolderPathExists(const QFileInfo folderPath)
|
||||
{
|
||||
QFileInfo a(foldernamepath);
|
||||
QDir dir;
|
||||
QString ensuredPath = a.filePath();
|
||||
QString ensuredPath = folderPath.filePath();
|
||||
bool success = dir.mkpath(ensuredPath);
|
||||
return success;
|
||||
}
|
||||
|
||||
bool ensureFolderPathExists(const QString folderPathName)
|
||||
{
|
||||
return ensureFolderPathExists(QFileInfo(folderPathName));
|
||||
}
|
||||
|
||||
bool copyFileAttributes(QString src, QString dst)
|
||||
{
|
||||
#ifdef Q_OS_WIN32
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue