Use configurationRelativePath when listing directory contents

This commit is contained in:
Cyberboss
2018-09-21 16:26:26 -04:00
parent 5d4ec99125
commit c462a77937
@@ -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),
}));
}