tgstation-server 6.19.0
The /tg/station 13 server suite
Loading...
Searching...
No Matches
ResolvingIOManager.cs
Go to the documentation of this file.
1using System;
2using System.IO.Abstractions;
3
5{
10 {
14 readonly string subdirectory;
15
22 IFileSystem fileSystem,
23 string subdirectory)
24 : base(fileSystem)
25 {
26 this.subdirectory = subdirectory ?? throw new ArgumentNullException(nameof(subdirectory));
27 }
28
30 protected override string ResolvePathCore(string path)
31 => base.ResolvePathCore(
33 }
34}
IIOManager that resolves paths to Environment.CurrentDirectory.
string ConcatPath(params string[] paths)
Combines an array of strings into a path.The combined path.
readonly IFileSystem fileSystem
The backing IFileSystem.
An IIOManager that resolve relative paths from another IIOManager to a subdirectory of that.
readonly string subdirectory
Path to the subdirectory attached to path resolutions.
ResolvingIOManager(IFileSystem fileSystem, string subdirectory)
Initializes a new instance of the ResolvingIOManager class.
override string ResolvePathCore(string path)
Resolve a given, non-rooted, path .The fully resolved path.