Adding nix shell and reworking some parser/local file manager stuff
This commit is contained in:
@@ -35,13 +35,12 @@ public class SzParser(ISzFileManager szFileManager)
|
||||
|
||||
public bool SaveDataset(SzDataset dataset)
|
||||
{
|
||||
var datasetDir = Path.Combine(szFileManager.DataPath, "datasets", dataset.Id);
|
||||
Directory.CreateDirectory(datasetDir);
|
||||
var datasetDir = Path.Combine(szFileManager.DatasetsPath, dataset.Id);
|
||||
|
||||
try
|
||||
{
|
||||
var json = SerializeDatasetToJson(dataset);
|
||||
File.WriteAllText(Path.Combine(datasetDir, "dataset.json"), json);
|
||||
return true;
|
||||
return szFileManager.SaveFile(Path.Combine(datasetDir, "dataset.json"), json);
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user