2using System.Collections.Generic;
4using System.Xml.Schema;
16 readonly RuntimeVersion _runtimeVersion;
25 _dir = dir ??
throw new ArgumentNullException(nameof(dir));
26 _dir = Path.GetFullPath(_dir);
27 _runtimeVersion = runtimeVersion;
31 public override IEnumerable<string>
List()
33 foreach (var i
in Directory.EnumerateFiles(_dir,
"*", SearchOption.AllDirectories))
39 public override Stream?
Open(
string name)
45 return File.OpenRead(path);
A ModuleReader for an exploded module.
ExplodedModuleReader(string dir, RuntimeVersion runtimeVersion)
Initializes a new instance.
override IEnumerable< string > List()
override? Stream Open(string name)
Provides access to the content of a module.
static ? string ToFilePath(string dir, string name)
Returns a file path to a resource in a file tree. If the resource name has a trailing "/" then the fi...
static string ToResourceName(string dir, string file)
Returns a resource name corresponding to the relative file path between dir and file ....