We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2571c21 commit 80a0175Copy full SHA for 80a0175
src/NitroSharp/Content/ContentManager.cs
@@ -187,7 +187,12 @@ public bool ResolveAssets()
187
188
public Stream OpenStream(string path)
189
{
190
- string fullPath = Path.Combine(RootDirectory, path.ToLowerInvariant());
+ if (Path.GetDirectoryName(path) is string dir
191
+ && Path.GetFileName(path) is string filename)
192
+ {
193
+ path = Path.Combine(dir, filename.ToLowerInvariant());
194
+ }
195
+ string fullPath = Path.Combine(RootDirectory, path);
196
return File.OpenRead(fullPath);
197
}
198
0 commit comments