I have installed python 3.6 in C: drive, on windows 10. I want to find size of file in D: drive.
Asked
Active
Viewed 103 times
0
-
You will have to pass the path as `"D:\\"` – Moinuddin Quadri Feb 06 '17 at 09:03
-
for every folder its giving result as 4096. its not matching with file sizes. Example what I tried is : >>> b = ntpath.getsize('E:\\Practice') >>> b 4096 – Vivekanand.Bali Feb 06 '17 at 10:07
-
I do not see the suggestion of using `ntpath.getsize` in the linked question. Have you tried passing the path to the function in the accepted answer to this post? – Moinuddin Quadri Feb 06 '17 at 11:49