mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-01-23 23:20:51 +01:00
Cleanup file related code (#14023)
This commit is contained in:
parent
4096c973c6
commit
0c3ba30de2
17 changed files with 104 additions and 56 deletions
|
|
@ -6,6 +6,7 @@ using System.Threading.Tasks;
|
|||
using AutoFixture;
|
||||
using Emby.Server.Implementations.Library;
|
||||
using Emby.Server.Implementations.Plugins;
|
||||
using Jellyfin.Extensions;
|
||||
using Jellyfin.Extensions.Json;
|
||||
using Jellyfin.Extensions.Json.Converters;
|
||||
using MediaBrowser.Common.Plugins;
|
||||
|
|
@ -85,7 +86,7 @@ namespace Jellyfin.Server.Implementations.Tests.Plugins
|
|||
var dllPath = Path.GetDirectoryName(Path.Combine(_pluginPath, dllFile))!;
|
||||
|
||||
Directory.CreateDirectory(dllPath);
|
||||
File.Create(Path.Combine(dllPath, filename));
|
||||
FileHelper.CreateEmpty(Path.Combine(dllPath, filename));
|
||||
var metafilePath = Path.Combine(_pluginPath, "meta.json");
|
||||
|
||||
File.WriteAllText(metafilePath, JsonSerializer.Serialize(manifest, _options));
|
||||
|
|
@ -141,7 +142,7 @@ namespace Jellyfin.Server.Implementations.Tests.Plugins
|
|||
|
||||
foreach (var file in files)
|
||||
{
|
||||
File.Create(Path.Combine(_pluginPath, file));
|
||||
FileHelper.CreateEmpty(Path.Combine(_pluginPath, file));
|
||||
}
|
||||
|
||||
var metafilePath = Path.Combine(_pluginPath, "meta.json");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue