// prevent the encryption of any file with filename ending with -journal
autofilename=settings.filename_get();
if(encryptDbJournal==false&&(filename.size()>8)&&(filename.compare(filename.size()-8,8,std::string{"-journal"})==0)){// This is a plain transfered file
BCTBX_SLOGD<<"Encryption test: skip encryption for -journal file";