C# Is there a faster way than FileInfo.Length with multiple files comparison? -


i have been trying compare files 2 differents environments. both environment accessed via network drive.

first, checked if file present in both environments (to save time), ask fileinfo on both files compare filesizes (fileinfo.length).

my goal populate listview every files not have same size investigate on these later.

i find hard understand windows explorer gets filesize of lot of files , fileinfo taking long...

thanks. ben

if use directoryinfo.getfiles(some-search-pattern) files, use fileinfo-instance returned call, property fileinfo.length cached search.

whether of depends on how search performs in comparison check doing (if search slower, may not gain anything). still, may worth looking into.


Comments