Merge pull request #700 from tgstation/699-FixPathStrip

Use configurationRelativePath when listing directory contents
This commit is contained in:
Jordan Brown
2018-09-21 16:25:32 -04:00
committed by GitHub
@@ -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),
}));
}