After calling this, the data-directory may be a new one
| 256 | |
| 257 | //After calling this, the data-directory may be a new one |
| 258 | void ItemRepositoryRegistryPrivate::deleteDataDirectory(bool recreate) |
| 259 | { |
| 260 | QMutexLocker lock(&m_mutex); |
| 261 | |
| 262 | bool result = QDir(m_path).removeRecursively(); |
| 263 | Q_ASSERT(result); |
| 264 | Q_UNUSED(result); |
| 265 | // Just recreate the directory then; leave old path (as it is dependent on appname and session only). |
| 266 | if (recreate) { |
| 267 | QDir().mkpath(m_path); |
| 268 | } |
| 269 | } |
| 270 | |
| 271 | ItemRepositoryRegistryPrivate::ItemRepositoryRegistryPrivate(const QString& path) |
| 272 | : m_path(path) |
no test coverage detected