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);
 }
Ejemplo n.º 2
0
 protected virtual void OnFilterDirectoryFinded(EventsProgressArgs e)
 {
     FilterDirectoryFinded?.Invoke(this, e);
 }