public DirectoryModel(string _FullPath, List <string> _Extensions = null) { if (_FullPath == null) { ErrorController.ThrowUserError("Path cannot be empty."); return; } // Create directory if path doesn't exists if (!Directory.Exists(_FullPath)) { Directory.CreateDirectory(_FullPath); } FullPath = _FullPath; Extensions = _Extensions ?? new List <string>(); }
public static void LogError(string text) { ErrorController.ThrowUserError(text); Log(text); }