# How to get size of folder using Python # import moduleimport os# assign sizesize = 0# assign folder pathFolderpath = 'C:/Users/Geetansh Sahni/Documents/R'# get sizefor path, dirs, files in os.walk(Folderpath):    for f in files:        fp = os.path.join(path, f)        size += os.path.getsize(fp)# display sizeprint("Folder size: " + str(size))