From c462a77937aaa5c6b16ce352e3d6b500e6fe67ce Mon Sep 17 00:00:00 2001 From: Cyberboss Date: Fri, 21 Sep 2018 16:26:26 -0400 Subject: [PATCH] Use configurationRelativePath when listing directory contents --- .../Components/StaticFiles/Configuration.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Tgstation.Server.Host/Components/StaticFiles/Configuration.cs b/src/Tgstation.Server.Host/Components/StaticFiles/Configuration.cs index 69846570a3..d5b972483d 100644 --- a/src/Tgstation.Server.Host/Components/StaticFiles/Configuration.cs +++ b/src/Tgstation.Server.Host/Components/StaticFiles/Configuration.cs @@ -169,7 +169,7 @@ namespace Tgstation.Server.Host.Components.StaticFiles result.AddRange(enumerator.Select(x => new ConfigurationFile { IsDirectory = true, - Path = ioManager.ConcatPath(path, x), + Path = ioManager.ConcatPath(configurationRelativePath, x), })); } catch (IOException e) @@ -182,7 +182,7 @@ namespace Tgstation.Server.Host.Components.StaticFiles result.AddRange(enumerator.Select(x => new ConfigurationFile { IsDirectory = false, - Path = ioManager.ConcatPath(path, x), + Path = ioManager.ConcatPath(configurationRelativePath, x), })); }