Index: sources/storage/FileHandler.h =================================================================== diff -u -r6210028a421d6259963bf172efbe4f23abfecf2f -r1f5b2250ae70d305654d014a9aa1fd8baa29779c --- sources/storage/FileHandler.h (.../FileHandler.h) (revision 6210028a421d6259963bf172efbe4f23abfecf2f) +++ sources/storage/FileHandler.h (.../FileHandler.h) (revision 1f5b2250ae70d305654d014a9aa1fd8baa29779c) @@ -6,8 +6,8 @@ * WHOLE, WITHOUT THE EXPLICIT PERMISSION OF THE COPYRIGHT OWNER. * * \file FileHandler.h - * \author (last) Behrouz NematiPour - * \date (last) 15-Oct-2022 + * \author (last) Vy + * \date (last) 26-Apr-2023 * \author (original) Behrouz NematiPour * \date (original) 26-Aug-2020 * @@ -38,7 +38,6 @@ */ class FileHandler { - static void errOut(const QString &vMessage); public: enum FileCopyError_Enums { @@ -58,6 +57,8 @@ }; public: + static void errOut (const QString &vMessage); + static bool write (const QString &vFileName, const QString &vContent, bool vAppend = true ); static bool read (const QString &vFileName, QString &vContent, bool vAppend = false); static bool read (const QString &vFileName, QJsonObject &vContent, QJsonParseError *error = nullptr); @@ -69,6 +70,7 @@ static bool makeFolder (const QString &vFolder); static bool isMounted (const QString &vPath, bool *vIsReadOnly = nullptr); + static bool tmpUsable (); static QFileInfoList find(const QString &vPath, QStringList vNameFilters, quint8 vRetainPercent); static QFileInfoList find(const QString &vPath, QStringList vNameFilters); @@ -143,6 +145,8 @@ // close source srcFile.close(); + //DEBUG qDebug()<< dstFile.fileName() <<" destination file size : " << dstFile.size() << " src==dest ? " << (dstFile.size() == totalSize); + // close destination if ( ! dstFile.flush() ) { err = eDstFlushError ; goto lErr; } dstFile.close();