code: def getVolInfo(*paths):
      '''
      Retrieve volume usage info for the given path.
      '''
      path = os.path.join(*paths)
      path = os.path.expanduser(path)
  
      st = os.statvfs(path)
  
      free = st.f_bavail * st.f_frsize
      total = st.f_blocks * st.f_frsize
  
      return {
          'free': free,
          'used': total - free,
          'total': total,
      f getVolInfo(*paths):
      '''
      Retrieve volume usage info for the given path.
      '''
      path = os.path.join(*paths)
      path = os.path.expanduser(path)
  
      st = os.statvfs(path)
  
      free = st.f_bavail * st.f_frsize
      total = st.f_blocks * st.f_frsize
  
      return {
          'free': free,
          'used': total - free,
          'total': total,
      }
docs: Retrieve volume usage info for the given path.