mirror of
https://github.com/wabbajack-tools/wabbajack.git
synced 2024-08-30 18:42:17 +00:00
Make the temp folder a setting
This commit is contained in:
parent
55f90bd485
commit
c45bd2928b
@ -248,7 +248,7 @@ namespace Wabbajack.CacheServer
|
||||
|
||||
using (var queue = new WorkQueue())
|
||||
{
|
||||
await Directory.EnumerateFiles(Path.Combine("c:\\tmp", (string)arg.Folder)).PMap(queue,
|
||||
await Directory.EnumerateFiles(Path.Combine(Server.Config.Settings.TempDir, (string)arg.Folder)).PMap(queue,
|
||||
async file =>
|
||||
{
|
||||
Utils.Log($"Ingesting {file}");
|
||||
|
@ -3,6 +3,7 @@ using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using MongoDB.Driver.Core.Configuration;
|
||||
using Wabbajack.CacheServer.DTOs;
|
||||
using Wabbajack.CacheServer.DTOs.JobQueue;
|
||||
using Wabbajack.Lib.NexusApi;
|
||||
@ -24,5 +25,7 @@ namespace Wabbajack.CacheServer.ServerConfig
|
||||
public MongoConfig<NexusCacheData<NexusFileInfo>> NexusFileInfos { get; set; }
|
||||
|
||||
public IndexerConfig Indexer { get; set; }
|
||||
|
||||
public Settings Settings { get; set; }
|
||||
}
|
||||
}
|
||||
|
13
Wabbajack.CacheServer/ServerConfig/Settings.cs
Normal file
13
Wabbajack.CacheServer/ServerConfig/Settings.cs
Normal file
@ -0,0 +1,13 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Wabbajack.CacheServer.ServerConfig
|
||||
{
|
||||
public class Settings
|
||||
{
|
||||
public string TempDir { get; set; }
|
||||
}
|
||||
}
|
@ -96,6 +96,7 @@
|
||||
<Compile Include="ServerConfig\BuildServerConfig.cs" />
|
||||
<Compile Include="ServerConfig\IndexerConfig.cs" />
|
||||
<Compile Include="ServerConfig\MongoConfig.cs" />
|
||||
<Compile Include="ServerConfig\Settings.cs" />
|
||||
<Compile Include="TestingEndpoints.cs" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
|
@ -35,3 +35,5 @@ Indexer:
|
||||
DownloadDir: c:\tmp\downloads
|
||||
TempDir: c:\tmp\tmp
|
||||
ArchiveDir: c:\archives
|
||||
Settings:
|
||||
TempDir: c:\tmp\tmp
|
Loading…
Reference in New Issue
Block a user