Re: Directory Size

2017-12-09 Thread Vino via Digitalmars-d-learn
On Friday, 8 December 2017 at 19:10:09 UTC, vino wrote: On Thursday, 7 December 2017 at 12:19:00 UTC, Vino wrote: On Thursday, 7 December 2017 at 09:04:19 UTC, Vino wrote: [...] Hi Andrea, Was able to find a solution to the above issue by adding the replace function as below, the the code

Re: Directory Size

2017-12-08 Thread vino via Digitalmars-d-learn
On Thursday, 7 December 2017 at 12:19:00 UTC, Vino wrote: On Thursday, 7 December 2017 at 09:04:19 UTC, Vino wrote: [...] Hi Andrea, Was able to find a solution to the above issue by adding the replace function as below, the the code is working as expected, is there any chance of using

Re: Directory Size

2017-12-07 Thread Vino via Digitalmars-d-learn
On Thursday, 7 December 2017 at 09:04:19 UTC, Vino wrote: On Wednesday, 6 December 2017 at 15:04:55 UTC, Andrea Fontana wrote: On Wednesday, 6 December 2017 at 14:49:48 UTC, Vino wrote: [...] Just use Array! constructor. auto mSize () { string FFs = "/home/andrea/Scaricati";

Re: Directory Size

2017-12-07 Thread Vino via Digitalmars-d-learn
On Wednesday, 6 December 2017 at 15:04:55 UTC, Andrea Fontana wrote: On Wednesday, 6 December 2017 at 14:49:48 UTC, Vino wrote: Hi Andrea, Thank you very much, as your code is pretty good for our scenario, just one request, the above is a part of our main code where we have many such sub

Re: Directory Size

2017-12-06 Thread Andrea Fontana via Digitalmars-d-learn
On Wednesday, 6 December 2017 at 14:49:48 UTC, Vino wrote: Hi Andrea, Thank you very much, as your code is pretty good for our scenario, just one request, the above is a part of our main code where we have many such sub code and all of our sub code use the container

Re: Directory Size

2017-12-06 Thread Vino via Digitalmars-d-learn
On Wednesday, 6 December 2017 at 09:16:56 UTC, Andrea Fontana wrote: On Tuesday, 5 December 2017 at 17:21:29 UTC, Vino wrote: Hi All, Is there any better ways to get the size of folders , The below code perfectly works , but i need return type as Array!(Tuple!(string, string)) rather then

Re: Directory Size

2017-12-06 Thread Andrea Fontana via Digitalmars-d-learn
On Tuesday, 5 December 2017 at 17:21:29 UTC, Vino wrote: Hi All, Is there any better ways to get the size of folders , The below code perfectly works , but i need return type as Array!(Tuple!(string, string)) rather then using the "Result.insertBack(d);

Directory Size

2017-12-05 Thread Vino via Digitalmars-d-learn
Hi All, Is there any better ways to get the size of folders , The below code perfectly works , but i need return type as Array!(Tuple!(string, string)) rather then using the "Result.insertBack(d); Result.insertBack(to!string(SdFiles[].sum))" as per the below example. E.g: