4 ms·
So Windows has to actually render out the filenames and sizes somewhere to get the total amount of space used by the files? That seems a bit ... non-optimal.
by drivingmenuts 2y ago
So Windows has to actually render out the filenames and sizes somewhere to get the total amount of space used by the files?
That seems a bit ... non-optimal.
- Jtsummers 2y agoNo, it doesn't have to do that. Get-ChildItem *.jpg | Measure-Object -property length -sum Stats included in this are the sum total of the sizes (in bytes). That's Powershell which has been around for a while now, I've never bothered to learn it though and always have to look things up. Get-ChildItem can be replaced with ls or dir.