KWSys: Add symlinks to directories as files (#12284)
KWSys: Add symlinks to directories as files (#12284)

This behaviour was previously broken; regardless of the
RecurseThroughSymLinks value, symlinks to directories were
NEVER added as files in the results.

When RecurseThroughSymLinks is ON, symlinks to directories
should be recursed as if they were the actual directories
to gather the files within.

However, when RecurseThroughSymLinks is OFF, symlinks to
directories should be returned as files in the result.

Inspired-by: Johan Björk <cea584625761a4689718c7ebf7b0900096c3dcab@spotify.com>

mspark93/VTK,gram526/VTK,sumedhasingla/VTK,aashish24/VTK-old,ashray/VTK-EVM,johnkit/vtk-dev,gram526/VTK,keithroe/vtkoptix,ashray/VTK-EVM,aashish24/VTK-old,mspark93/VTK,keithroe/vtkoptix,jmerkow/VTK,biddisco/VTK,candy7393/VTK,sumedhasingla/VTK,candy7393/VTK,spthaolt/VTK,sankhesh/VTK,spthaolt/VTK,hendradarwin/VTK,candy7393/VTK,jmerkow/VTK,hendradarwin/VTK,johnkit/vtk-dev,cjh1/VTK,spthaolt/VTK,SimVascular/VTK,sankhesh/VTK,biddisco/VTK,mspark93/VTK,collects/VTK,msmolens/VTK,jmerkow/VTK,demarle/VTK,ashray/VTK-EVM,cjh1/VTK,msmolens/VTK,demarle/VTK,SimVascular/VTK,demarle/VTK,biddisco/VTK,demarle/VTK,cjh1/VTK,berendkleinhaneveld/VTK,ashray/VTK-EVM,johnkit/vtk-dev,demarle/VTK,berendkleinhaneveld/VTK,candy7393/VTK,aashish24/VTK-old,jmerkow/VTK,mspark93/VTK,cjh1/VTK,gram526/VTK,SimVascular/VTK,sumedhasingla/VTK,collects/VTK,spthaolt/VTK,sankhesh/VTK,hendradarwin/VTK,sumedhasingla/VTK,aashish24/VTK-old,keithroe/vtkoptix,biddisco/VTK,hendradarwin/VTK,msmolens/VTK,sankhesh/VTK,collects/VTK,keithroe/vtkoptix,candy7393/VTK,biddisco/VTK,gram526/VTK,gram526/VTK,SimVascular/VTK,biddisco/VTK,msmolens/VTK,berendkleinhaneveld/VTK,berendkleinhaneveld/VTK,sankhesh/VTK,spthaolt/VTK,berendkleinhaneveld/VTK,ashray/VTK-EVM,sankhesh/VTK,SimVascular/VTK,ashray/VTK-EVM,jmerkow/VTK,jmerkow/VTK,sumedhasingla/VTK,sankhesh/VTK,aashish24/VTK-old,sumedhasingla/VTK,johnkit/vtk-dev,SimVascular/VTK,ashray/VTK-EVM,berendkleinhaneveld/VTK,aashish24/VTK-old,cjh1/VTK,jmerkow/VTK,gram526/VTK,demarle/VTK,keithroe/vtkoptix,SimVascular/VTK,keithroe/vtkoptix,sankhesh/VTK,collects/VTK,hendradarwin/VTK,demarle/VTK,mspark93/VTK,msmolens/VTK,mspark93/VTK,msmolens/VTK,gram526/VTK,biddisco/VTK,msmolens/VTK,berendkleinhaneveld/VTK,mspark93/VTK,mspark93/VTK,ashray/VTK-EVM,hendradarwin/VTK,cjh1/VTK,spthaolt/VTK,candy7393/VTK,collects/VTK,demarle/VTK,collects/VTK,candy7393/VTK,gram526/VTK,hendradarwin/VTK,spthaolt/VTK,sumedhasingla/VTK,msmolens/VTK,jmerkow/VTK,keithroe/vtkoptix,keithroe/vtkoptix,johnkit/vtk-dev,johnkit/vtk-dev,SimVascular/VTK,sumedhasingla/VTK,johnkit/vtk-dev,candy7393/VTK