Added method for modders
This commit is contained in:
@@ -7,6 +7,8 @@ namespace Core.Utils;
|
||||
public class FileUtil(
|
||||
ISptLogger<FileUtil> _logger)
|
||||
{
|
||||
protected const string _modBasePath = "user/mods/";
|
||||
|
||||
public List<string> GetFiles(string path, bool recursive = false)
|
||||
{
|
||||
var files = new List<string>(Directory.GetFiles(path));
|
||||
@@ -124,4 +126,9 @@ public class FileUtil(
|
||||
{
|
||||
Directory.Delete(directory, deleteContent);
|
||||
}
|
||||
|
||||
public string GetModPath(string modName)
|
||||
{
|
||||
return Path.Combine(_modBasePath, modName);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user