Code added to calculate the total size of the files in the data directory of the bag and update the size in the bag-info.txt file.