forked from organicmaps/organicmaps
[eye] dir making is moved to the first step of migration
This commit is contained in:
parent
2ba61caad8
commit
427834ba5e
1 changed files with 3 additions and 3 deletions
|
@ -122,6 +122,9 @@ bool Storage::AppendMapObjectEvent(std::vector<int8_t> const & src)
|
|||
// static
|
||||
void Storage::Migrate()
|
||||
{
|
||||
if (!GetPlatform().MkDirChecked(GetEyeDir()))
|
||||
return;
|
||||
|
||||
auto const oldPath = GetPlatform().WritablePathForFile("metrics");
|
||||
if (!GetPlatform().IsFileExistsByFullPath(oldPath))
|
||||
return;
|
||||
|
@ -132,9 +135,6 @@ void Storage::Migrate()
|
|||
return;
|
||||
}
|
||||
|
||||
if (!GetPlatform().MkDirChecked(GetEyeDir()))
|
||||
return;
|
||||
|
||||
if (!base::CopyFileX(oldPath, GetInfoFilePath()))
|
||||
return;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue