Index: sources/storage/FileHandler.h =================================================================== diff -u -rb7649e74aeebe1545ba0db9aabe2b41f0a28baec -r7d6fa45cd6ab5806153706ce7092872220678de3 --- sources/storage/FileHandler.h (.../FileHandler.h) (revision b7649e74aeebe1545ba0db9aabe2b41f0a28baec) +++ sources/storage/FileHandler.h (.../FileHandler.h) (revision 7d6fa45cd6ab5806153706ce7092872220678de3) @@ -76,6 +76,8 @@ static QStringList subFolders(const QString &vFolder); + static bool isPathSymLink(const QString &vFilePath); + /*! * \brief FileHandler::copyFile * \details Copies a file chunk by chunk @@ -96,10 +98,7 @@ static quint8 mO_CopyPercent = 0; quint8 mC_CopyPercent = 0; - // determine if the file is a symlink by checking for the absolute path of the QFile object - // if it is empty, this indicates that it is not a symlink, otherwise skip the file - QString symLinkAbsolutePath = srcFile.symLinkTarget(); - if(!symLinkAbsolutePath.isEmpty()) { return eOK ; } // skipping the file + if ( isPathSymLink(vSource + vFileName) ) { return eOK ; } // skipping the file if ( ! srcDir .exists() ) { err = eSrcFolderNotExist ; goto lErr; } if ( ! srcFile.exists() ) { err = eSrcFileNotExist ; goto lErr; }