mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-08-29 08:00:19 +01:00
Merge pull request #700 from tgstation/699-FixPathStrip
Use configurationRelativePath when listing directory contents
This commit is contained in:
@@ -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),
|
||||
}));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user