code: def get_file_size(self, filenames):
          
          # use (1024 ** 3) for gigabytes
          # equivalent to: stat -Lc '%s' filename
  
          # If given a list, recurse through it.
          if type(filenames) is list:
              return sum([self.get_file_size(filename) for filename in filenames])
  
          return round(sum([float(os.stat(f).st_size) for f in filenames.split(" ")]) / (1024 ** 2), 4)
docs: Get size of all files in string (space-separated) in megabytes (Mb).
  
          :param str filenames: a space-separated string of filenames