Example #1
0
 public Task CreateFoldersAsync(PermStorageFolderStructure structure)
 {
     if (structure == null)
     {
         throw new ArgumentNullException(nameof(structure));
     }
     return(Task.Run(async() =>
     {
         Logger.Info("Creates target folders.");
         await _fileUtil.CreateFolderAsync(structure.BasePath);
         TaskWatcher.AddTask(_fileUtil.CreateFolderAsync(structure.XimPath));
         TaskWatcher.AddTask(_fileUtil.CreateFolderAsync(structure.MhaPath));
         TaskWatcher.AddTask(_fileUtil.CreateFolderAsync(structure.CtPath));
     }));
 }