Work on the datta handler
This commit is contained in:
@@ -2,21 +2,16 @@ namespace SzCore.Defaults;
|
||||
|
||||
public class DefaultLocalFileManager : ISzFileManager
|
||||
{
|
||||
public string DataPath
|
||||
{
|
||||
get
|
||||
{
|
||||
var path = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "data");
|
||||
if (!Directory.Exists(path))
|
||||
{
|
||||
Directory.CreateDirectory(path);
|
||||
}
|
||||
|
||||
return path;
|
||||
}
|
||||
}
|
||||
|
||||
public string DataPath => Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "data");
|
||||
public string DatasetsPath => Path.Combine(DataPath, "datasets");
|
||||
public string TemplatesPath => Path.Combine(DataPath, "templates");
|
||||
|
||||
public DefaultLocalFileManager()
|
||||
{
|
||||
Directory.CreateDirectory(DataPath);
|
||||
Directory.CreateDirectory(DatasetsPath);
|
||||
Directory.CreateDirectory(TemplatesPath);
|
||||
}
|
||||
|
||||
public bool SaveFile(string path, string fileContent)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user