GH-228 do not follow symlinks during instance copy on unix

Windows will need a more complex solution.
This commit is contained in:
Petr Mrázek
2015-04-07 18:16:02 +02:00
parent 58840ac10c
commit 0220fe4f9d
3 changed files with 32 additions and 12 deletions

View File

@ -51,7 +51,7 @@ LIBUTIL_EXPORT bool ensureFilePathExists(QString filenamepath);
*/
LIBUTIL_EXPORT bool ensureFolderPathExists(QString filenamepath);
LIBUTIL_EXPORT bool copyPath(QString src, QString dst);
LIBUTIL_EXPORT bool copyPath(QString src, QString dst, bool follow_symlinks = true);
/// Opens the given file in the default application.
LIBUTIL_EXPORT void openFileInDefaultProgram(QString filename);