private FileSystemInfo ChackFileSystemInfo(FileSystemInfo file)
 {
     if (file is DirectoryInfo)
     {
         FilterDirectoryFinded?.Invoke(this, new FileSystemVisitorEventArgs()
         {
             Name = file.Name, FullPath = file.FullName
         });
     }
     else
     {
         FilterFileFinded?.Invoke(this, new FileSystemVisitorEventArgs()
         {
             Name = file.Name, FullPath = file.FullName
         });
     }
     return(file);
 }
示例#2
0
 protected virtual void OnFilterFileFinded(EventsProgressArgs e)
 {
     FilterFileFinded?.Invoke(this, e);
 }