From ccec799e01c1b63b374a305b9a5e1442672d139a Mon Sep 17 00:00:00 2001 From: manongjohn Date: Jun 01 2019 15:38:45 +0000 Subject: Fix copyDir for macOS --- diff --git a/toonz/sources/common/tsystem/tsystem.cpp b/toonz/sources/common/tsystem/tsystem.cpp index a8b7724..c96c188 100644 --- a/toonz/sources/common/tsystem/tsystem.cpp +++ b/toonz/sources/common/tsystem/tsystem.cpp @@ -298,9 +298,10 @@ void TSystem::copyDir(const TFilePath &dst, const TFilePath &src) { TFilePath srcDir = TFilePath(fi.filePath().toStdString()); TFilePath dstDir = dst + srcDir.getName(); copyDir(dstDir, srcDir); - } else - QFile::copy(fi.filePath(), - toQString(dst) + QString("\\") + fi.fileName()); + } else { + TFilePath srcFi = dst + TFilePath(fi.fileName()); + QFile::copy(fi.filePath(), toQString(srcFi)); + } } }