File tree 1 file changed +9
-1
lines changed
1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -543,7 +543,15 @@ void Folder::startVfs()
543
543
544
544
// Immediately mark the sqlite temporaries as excluded. They get recreated
545
545
// on db-open and need to get marked again every time.
546
- QString stateDbFile = _journal.databaseFilePath ();
546
+ const auto stateDbFile = _journal.databaseFilePath ();
547
+ const auto stateDbWalFile = QString (stateDbFile + QStringLiteral (" -wal" ));
548
+ const auto stateDbShmFile = QString (stateDbFile + QStringLiteral (" -shm" ));
549
+
550
+ FileSystem::setFileReadOnly (stateDbFile, false );
551
+ FileSystem::setFileReadOnly (stateDbWalFile, false );
552
+ FileSystem::setFileReadOnly (stateDbShmFile, false );
553
+ FileSystem::setFolderPermissions (path (), FileSystem::FolderPermissions::ReadWrite);
554
+
547
555
_journal.open ();
548
556
_vfs->fileStatusChanged (stateDbFile + " -wal" , SyncFileStatus::StatusExcluded);
549
557
_vfs->fileStatusChanged (stateDbFile + " -shm" , SyncFileStatus::StatusExcluded);
You can’t perform that action at this time.
0 commit comments