mirror of
https://github.com/Jackett/Jackett.git
synced 2025-09-17 17:34:09 +02:00
@@ -215,6 +215,10 @@ namespace Jackett.Updater
|
||||
|
||||
logger.Info("Finding files in: " + updateLocation);
|
||||
var files = Directory.GetFiles(updateLocation, "*.*", SearchOption.AllDirectories).OrderBy(x => x).ToList();
|
||||
logger.Info($"{files.Count()} update files found");
|
||||
|
||||
try
|
||||
{
|
||||
foreach (var file in files)
|
||||
{
|
||||
var fileName = Path.GetFileName(file).ToLowerInvariant();
|
||||
@@ -232,6 +236,11 @@ namespace Jackett.Updater
|
||||
CopyUpdateFile(options.Path, file, updateLocation, true);
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
logger.Error(ex);
|
||||
}
|
||||
|
||||
logger.Info("File copying complete");
|
||||
|
||||
|
Reference in New Issue
Block a user