diff --git a/src/Tgstation.Server.Host/IO/DefaultIOManager.cs b/src/Tgstation.Server.Host/IO/DefaultIOManager.cs index 470f437d7f..eaf2b27736 100644 --- a/src/Tgstation.Server.Host/IO/DefaultIOManager.cs +++ b/src/Tgstation.Server.Host/IO/DefaultIOManager.cs @@ -162,7 +162,8 @@ namespace Tgstation.Server.Host.IO => Task.Factory.StartNew( () => { - var di = fileSystem.DirectoryInfo.New(path); + var di = fileSystem.DirectoryInfo.New( + ResolvePath(path)); if (di.Exists) NormalizeAndDelete(di, cancellationToken); }, @@ -416,11 +417,14 @@ namespace Tgstation.Server.Host.IO { ArgumentNullException.ThrowIfNull(subdirectoryPath); + if (!Path.IsPathRooted(subdirectoryPath)) + subdirectoryPath = ConcatPath( + ResolvePath(), + subdirectoryPath); + return new ResolvingIOManager( fileSystem, - ConcatPath( - ResolvePath(), - subdirectoryPath)); + subdirectoryPath); } ///