Beispiel #1
0
 public bool AddNewFile(string path)
 {
     try
     {
         var numberOfFiles = _fileStorage.GetNumberOfFiles();
         _fileStorage.AddNewFile(path);
         if (numberOfFiles == _fileStorage.GetNumberOfFiles())
         {
             return(false);
         }
         return(true);
     }
     catch (Exception e)
     {
         Logger.Log(e.Message);
         return(false);
     }
 }