Re: [Tutor] String within a string solution (newbie question)

2016-10-27 Thread Matt Ruffalo
On 10/26/2016 02:06 PM, Wish Dokta wrote: > Hello, > > I am currently writing a basic program to calculate and display the size of > folders with a drive/directory. To do this I am storing each directory in a > dict as the key, with the value being the sum of the size of all files in > that directo

Re: [Tutor] String within a string solution (newbie question)

2016-10-27 Thread Bob Gailer
BubOn Oct 27, 2016 8:38 AM, "Wish Dokta" wrote: > > Hello Alan, > > Thank you for the reply. > > I have actually fixed that bug. If you are bored or for some other reason > would like to assist a newbro my code is here: > > main: http://pastebin.com/LgbeywiB > functions: http://pastebin.com/vU7zzJ

Re: [Tutor] String within a string solution (newbie question)

2016-10-27 Thread Wish Dokta
Thank you Bob, While you were correct adding "\\" helped, I also needed to add "\\" to the dict key so it would also pic up the root directory. Many thanks, Glen On 26 October 2016 at 19:43, Bob Gailer wrote: > On Oct 26, 2016 2:07 PM, "Wish Dokta" wrote: > > > > Hello, > > > > I am currently

Re: [Tutor] String within a string solution (newbie question)

2016-10-27 Thread Wish Dokta
Hello Alan, Thank you for the reply. I have actually fixed that bug. If you are bored or for some other reason would like to assist a newbro my code is here: main: http://pastebin.com/LgbeywiB functions: http://pastebin.com/vU7zzJKe I'd be very grateful for any feedback on improvements to the c

Re: [Tutor] String within a string solution (newbie question)

2016-10-26 Thread Bob Gailer
On Oct 26, 2016 2:07 PM, "Wish Dokta" wrote: > > Hello, > > I am currently writing a basic program to calculate and display the size of > folders with a drive/directory. To do this I am storing each directory in a > dict as the key, with the value being the sum of the size of all files in > that d

Re: [Tutor] String within a string solution (newbie question)

2016-10-26 Thread Alan Gauld via Tutor
On 26/10/16 19:06, Wish Dokta wrote: > folders with a drive/directory. To do this I am storing each directory in a > dict as the key, with the value being the sum of the size of all files in > that directories (but not directories). > > For example: > > for "C:\\docs\\code" in key: > > Which wo

[Tutor] String within a string solution (newbie question)

2016-10-26 Thread Wish Dokta
Hello, I am currently writing a basic program to calculate and display the size of folders with a drive/directory. To do this I am storing each directory in a dict as the key, with the value being the sum of the size of all files in that directories (but not directories). For example: { "C:\\doc