Пример #1
0
 public bool PostVisit(IDirectoryWalkerContext context, DirectoryInfo dirInfo)
 {
     if (IsPlaceHolderNeeded(context, dirInfo))
     {
         var placeHolderFile = CommandHelper.CreatePlaceHolder(dirInfo, _configuration);
         if (null != placeHolderFile)
         {
             context.VisitedFiles.Add(placeHolderFile.FullName, placeHolderFile);
         }
     }
     else
     {
         var placeHolderFile = CommandHelper.DeletePlaceHolder(dirInfo, _configuration);
         if (null != placeHolderFile)
         {
             context.VisitedFiles.Remove(placeHolderFile.FullName);
         }
     }
     return(true);
 }
Пример #2
0
 public bool PostVisit(IDirectoryWalkerContext context, DirectoryInfo dirInfo)
 {
     CommandHelper.DeletePlaceHolder(dirInfo, _configuration);
     return(true);
 }