mirror of https://github.com/Jackett/Jackett
Fix migration breaking the install
This commit is contained in:
parent
bd672a36df
commit
73ea3d899d
|
@ -110,7 +110,7 @@ namespace Jackett.Services
|
||||||
var oldDir = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), "Jackett");
|
var oldDir = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), "Jackett");
|
||||||
if (Directory.Exists(oldDir))
|
if (Directory.Exists(oldDir))
|
||||||
{
|
{
|
||||||
foreach (var file in Directory.GetFiles(oldDir, "*", SearchOption.AllDirectories))
|
foreach (var file in Directory.GetFiles(oldDir, "*.json", SearchOption.AllDirectories))
|
||||||
{
|
{
|
||||||
var path = file.Replace(oldDir, "");
|
var path = file.Replace(oldDir, "");
|
||||||
var destPath = GetAppDataFolder() + path;
|
var destPath = GetAppDataFolder() + path;
|
||||||
|
|
Loading…
Reference in New Issue