KWSys: Avoid stat in CopyFileAlways (#10790)
KWSys: Avoid stat in CopyFileAlways (#10790)

On Windows 7 the file size reported by 'stat' on a new file sometimes
reports zero even though the real size is correct.  This causes our
CopyFileAlways method to falsely detect copy failure.  Work around the
problem by trusting the state of ofstream after writing the file.

hendradarwin/ITK,malaterre/ITK,LucHermitte/ITK,fuentesdt/InsightToolkit-dev,msmolens/ITK,zachary-williamson/ITK,Kitware/ITK,CapeDrew/DITK,BRAINSia/ITK,PlutoniumHeart/ITK,richardbeare/ITK,BlueBrain/ITK,jmerkow/ITK,hjmjohnson/ITK,vfonov/ITK,GEHC-Surgery/ITK,hjmjohnson/ITK,jcfr/ITK,fbudin69500/ITK,zachary-williamson/ITK,stnava/ITK,jmerkow/ITK,fbudin69500/ITK,Kitware/ITK,jmerkow/ITK,LucHermitte/ITK,jmerkow/ITK,fuentesdt/InsightToolkit-dev,vfonov/ITK,blowekamp/ITK,ajjl/ITK,CapeDrew/DCMTK-ITK,PlutoniumHeart/ITK,daviddoria/itkHoughTransform,zachary-williamson/ITK,BlueBrain/ITK,LucasGandel/ITK,heimdali/ITK,richardbeare/ITK,jcfr/ITK,ajjl/ITK,GEHC-Surgery/ITK,atsnyder/ITK,fedral/ITK,stnava/ITK,CapeDrew/DCMTK-ITK,PlutoniumHeart/ITK,paulnovo/ITK,PlutoniumHeart/ITK,biotrump/ITK,cpatrick/ITK-RemoteIO,stnava/ITK,paulnovo/ITK,heimdali/ITK,cpatrick/ITK-RemoteIO,CapeDrew/DITK,spinicist/ITK,jcfr/ITK,fbudin69500/ITK,cpatrick/ITK-RemoteIO,vfonov/ITK,vfonov/ITK,paulnovo/ITK,fedral/ITK,hendradarwin/ITK,thewtex/ITK,InsightSoftwareConsortium/ITK,heimdali/ITK,hjmjohnson/ITK,zachary-williamson/ITK,BRAINSia/ITK,paulnovo/ITK,heimdali/ITK,heimdali/ITK,itkvideo/ITK,CapeDrew/DCMTK-ITK,rhgong/itk-with-dom,thewtex/ITK,jcfr/ITK,GEHC-Surgery/ITK,fedral/ITK,vfonov/ITK,cpatrick/ITK-RemoteIO,stnava/ITK,spinicist/ITK,hinerm/ITK,fuentesdt/InsightToolkit-dev,blowekamp/ITK,hendradarwin/ITK,daviddoria/itkHoughTransform,hinerm/ITK,LucasGandel/ITK,BlueBrain/ITK,PlutoniumHeart/ITK,InsightSoftwareConsortium/ITK,LucasGandel/ITK,LucasGandel/ITK,LucHermitte/ITK,LucHermitte/ITK,daviddoria/itkHoughTransform,richardbeare/ITK,BlueBrain/ITK,thewtex/ITK,PlutoniumHeart/ITK,fedral/ITK,PlutoniumHeart/ITK,vfonov/ITK,malaterre/ITK,cpatrick/ITK-RemoteIO,fbudin69500/ITK,biotrump/ITK,GEHC-Surgery/ITK,vfonov/ITK,biotrump/ITK,cpatrick/ITK-RemoteIO,CapeDrew/DCMTK-ITK,CapeDrew/DCMTK-ITK,InsightSoftwareConsortium/ITK,BlueBrain/ITK,BRAINSia/ITK,blowekamp/ITK,atsnyder/ITK,blowekamp/ITK,richardbeare/ITK,GEHC-Surgery/ITK,CapeDrew/DITK,hjmjohnson/ITK,itkvideo/ITK,richardbeare/ITK,itkvideo/ITK,paulnovo/ITK,fbudin69500/ITK,atsnyder/ITK,atsnyder/ITK,wkjeong/ITK,vfonov/ITK,CapeDrew/DITK,BRAINSia/ITK,blowekamp/ITK,CapeDrew/DITK,Kitware/ITK,biotrump/ITK,BlueBrain/ITK,thewtex/ITK,cpatrick/ITK-RemoteIO,CapeDrew/DITK,fuentesdt/InsightToolkit-dev,paulnovo/ITK,itkvideo/ITK,daviddoria/itkHoughTransform,eile/ITK,hinerm/ITK,hjmjohnson/ITK,biotrump/ITK,zachary-williamson/ITK,fedral/ITK,BRAINSia/ITK,rhgong/itk-with-dom,Kitware/ITK,fuentesdt/InsightToolkit-dev,hinerm/ITK,ajjl/ITK,hinerm/ITK,jmerkow/ITK,msmolens/ITK,jcfr/ITK,blowekamp/ITK,CapeDrew/DCMTK-ITK,LucasGandel/ITK,rhgong/itk-with-dom,heimdali/ITK,CapeDrew/DITK,wkjeong/ITK,ajjl/ITK,hendradarwin/ITK,richardbeare/ITK,vfonov/ITK,hinerm/ITK,wkjeong/ITK,BlueBrain/ITK,ajjl/ITK,fbudin69500/ITK,richardbeare/ITK,spinicist/ITK,spinicist/ITK,msmolens/ITK,stnava/ITK,InsightSoftwareConsortium/ITK,hendradarwin/ITK,GEHC-Surgery/ITK,paulnovo/ITK,BRAINSia/ITK,rhgong/itk-with-dom,malaterre/ITK,msmolens/ITK,wkjeong/ITK,eile/ITK,ajjl/ITK,stnava/ITK,fedral/ITK,itkvideo/ITK,rhgong/itk-with-dom,atsnyder/ITK,eile/ITK,daviddoria/itkHoughTransform,eile/ITK,itkvideo/ITK,CapeDrew/DITK,GEHC-Surgery/ITK,biotrump/ITK,stnava/ITK,BRAINSia/ITK,InsightSoftwareConsortium/ITK,eile/ITK,heimdali/ITK,CapeDrew/DCMTK-ITK,rhgong/itk-with-dom,atsnyder/ITK,jcfr/ITK,malaterre/ITK,daviddoria/itkHoughTransform,CapeDrew/DCMTK-ITK,biotrump/ITK,hendradarwin/ITK,zachary-williamson/ITK,InsightSoftwareConsortium/ITK,malaterre/ITK,msmolens/ITK,msmolens/ITK,spinicist/ITK,itkvideo/ITK,thewtex/ITK,spinicist/ITK,jmerkow/ITK,cpatrick/ITK-RemoteIO,jmerkow/ITK,atsnyder/ITK,PlutoniumHeart/ITK,BlueBrain/ITK,Kitware/ITK,malaterre/ITK,eile/ITK,msmolens/ITK,itkvideo/ITK,blowekamp/ITK,daviddoria/itkHoughTransform,eile/ITK,stnava/ITK,fedral/ITK,LucasGandel/ITK,hendradarwin/ITK,fedral/ITK,malaterre/ITK,spinicist/ITK,hinerm/ITK,Kitware/ITK,CapeDrew/DCMTK-ITK,jcfr/ITK,hendradarwin/ITK,wkjeong/ITK,fuentesdt/InsightToolkit-dev,rhgong/itk-with-dom,wkjeong/ITK,zachary-williamson/ITK,fbudin69500/ITK,eile/ITK,zachary-williamson/ITK,thewtex/ITK,eile/ITK,wkjeong/ITK,biotrump/ITK,atsnyder/ITK,zachary-williamson/ITK,ajjl/ITK,InsightSoftwareConsortium/ITK,daviddoria/itkHoughTransform,spinicist/ITK,fuentesdt/InsightToolkit-dev,fuentesdt/InsightToolkit-dev,fbudin69500/ITK,thewtex/ITK,malaterre/ITK,CapeDrew/DITK,LucHermitte/ITK,GEHC-Surgery/ITK,spinicist/ITK,paulnovo/ITK,blowekamp/ITK,rhgong/itk-with-dom,stnava/ITK,hjmjohnson/ITK,itkvideo/ITK,Kitware/ITK,LucasGandel/ITK,daviddoria/itkHoughTransform,fuentesdt/InsightToolkit-dev,wkjeong/ITK,heimdali/ITK,LucHermitte/ITK,ajjl/ITK,jmerkow/ITK,LucHermitte/ITK,hjmjohnson/ITK,malaterre/ITK,LucHermitte/ITK,msmolens/ITK,hinerm/ITK,LucasGandel/ITK,jcfr/ITK,atsnyder/ITK,hinerm/ITK