Make .bak files hidden on Unix systems.
This commit is contained in:
parent
abd382ff97
commit
f9f61069fe
|
@ -109,8 +109,13 @@ void VAbstractConverter::ReserveFile() const
|
||||||
// For such cases we will store old version in a reserve file.
|
// For such cases we will store old version in a reserve file.
|
||||||
QString error;
|
QString error;
|
||||||
QFileInfo const info(m_convertedFileName);
|
QFileInfo const info(m_convertedFileName);
|
||||||
const QString reserveFileName = u"%1/%2(v%3).%4.bak"_s.arg(info.absoluteDir().absolutePath(), info.baseName(),
|
#if defined(Q_OS_UNIX) || defined(Q_OS_MACOS)
|
||||||
GetFormatVersionStr(), info.completeSuffix());
|
const QChar hidden = QChar('.');
|
||||||
|
#else
|
||||||
|
const QChar hidden;
|
||||||
|
#endif
|
||||||
|
const QString reserveFileName = u"%1/%2%3(v%4).%5.bak"_s.arg(
|
||||||
|
info.absoluteDir().absolutePath(), hidden, info.baseName(), GetFormatVersionStr(), info.completeSuffix());
|
||||||
if (not SafeCopy(m_convertedFileName, reserveFileName, error))
|
if (not SafeCopy(m_convertedFileName, reserveFileName, error))
|
||||||
{
|
{
|
||||||
// #ifdef Q_OS_WIN32
|
// #ifdef Q_OS_WIN32
|
||||||
|
|
Loading…
Reference in New Issue
Block a user