forked from qt-creator/qt-creator
Merge remote-tracking branch 'origin/4.14'
Change-Id: I214b8d59e8ff7fe0511cd6116ec7725ddc4376ee
This commit is contained in:
@@ -216,9 +216,8 @@ bool FileUtils::copyRecursively(const FilePath &srcFilePath,
|
||||
const QFileInfo srcFileInfo = srcFilePath.toFileInfo();
|
||||
if (srcFileInfo.isDir()) {
|
||||
if (!tgtFilePath.exists()) {
|
||||
QDir targetDir(tgtFilePath.toString());
|
||||
targetDir.cdUp();
|
||||
if (!targetDir.mkdir(tgtFilePath.fileName())) {
|
||||
const QDir targetDir(tgtFilePath.parentDir().toString());
|
||||
if (!targetDir.mkpath(tgtFilePath.fileName())) {
|
||||
if (error) {
|
||||
*error = QCoreApplication::translate("Utils::FileUtils",
|
||||
"Failed to create directory \"%1\".")
|
||||
|
||||
Reference in New Issue
Block a user