- 👋 Hi, I’m @devndra12
- 👀 I’m interested in ...
- 🌱 I’m currently learning ...
- 💞️ I’m looking to collaborate on ...
- 📫 How to reach me ...
import os
size = 0
Folderpath = 'C:/Users/Geetansh Sahni/Documents/R'
for path, dirs, files in os.walk(Folderpath): for f in files: fp = os.path.join(path, f) size += os.path.getsize(fp)
print("Folder size: " + str(size))