Esempio n. 1
0
        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>();
        }
Esempio n. 2
0
 public static void LogError(string text)
 {
     ErrorController.ThrowUserError(text);
     Log(text);
 }