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
o the code or how I
am coding in general. I'd be particularly interested in a better data
structure to use to store the directories and their sizes.
Many thanks,
Glen
On 26 October 2016 at 19:34, Alan Gauld via Tutor wrote:
> On 26/10/16 19:06, Wish Dokta wrote:
>
> > folders
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" w