title: How to get the total size of files in a Directory in Ruby
body: <p>I am trying to copy some files into a directory  using Ruby, i need to assure the  files inside  the directory not exceed 2GB. is there any way to check the total size of files inside the directory.</p>