I am looking for a way to be able to get the total size of a folder with subfolders full of files. I have been researching in the forum and there are not many topics, only referring to doing this process but only when the folder contains documents and not subfolders. Does anyone have a structure that I can use for this scenario?
This is what I was using but it gives me a result of 0 since my directory does not have files but subfolders with the files
Convert.ToDouble(Dir_info.EnumerateFiles().Sum(function(f) f.Length)) /(1024*1024))