tgstation-server 6.12.0
The /tg/station 13 server suite
Loading...
Searching...
No Matches
IOManagerExtensions.cs
Go to the documentation of this file.
1using System;
2
5
7{
12 {
19 public static string GetPathInLocalDirectory(this IIOManager ioManager, IAssemblyInformationProvider assemblyInformationProvider)
20 {
21 ArgumentNullException.ThrowIfNull(ioManager);
22 ArgumentNullException.ThrowIfNull(assemblyInformationProvider);
23
24 return ioManager.ConcatPath(
25 Environment.GetFolderPath(
26 Environment.SpecialFolder.LocalApplicationData, // we use local application data here instead of comman application data because we store stuff here we don't want other users interfering with
27 Environment.SpecialFolderOption.DoNotVerify),
28 assemblyInformationProvider.VersionPrefix);
29 }
30 }
31}
static string GetPathInLocalDirectory(this IIOManager ioManager, IAssemblyInformationProvider assemblyInformationProvider)
Gets the local application data folder used by TGS.
Interface for using filesystems.
Definition IIOManager.cs:13
string ConcatPath(params string[] paths)
Combines an array of strings into a path.