Have used this in C# a long time ago.
long length = Directory.GetFiles(directoryPath,"*",SearchOption.AllDirectories).Sum(t => (new FileInfo(t).Length));
On Tue, Aug 2, 2016 at 12:58 AM, Fernando D. Bozzo fdbozzo@gmail.com wrote:
Yeah, I know, but I tend to find optimization and speed. It's the same as using "select * into cursor" just for looking the _tally
El 2/8/2016 7:40, "Gérard LOCHON" g-lochon@wanadoo.fr escribió:
Generally, it's multipurpose
Le 02/08/2016 à 00:56, Fernando D. Bozzo a écrit :
I think that creating a cursor and is too much for something that only need to sum file lenghts. Can be done with 2 arrays, one needed for ADIR and one for keeping the paths and subtotals.
[excessive quoting removed by server]