mirror of
https://github.com/Jackett/Jackett.git
synced 2025-09-17 17:34:09 +02:00
Fix migration breaking the install
This commit is contained in:
@@ -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;
|
||||||
|
Reference in New Issue
Block a user