def GetDiskFree(path=None):
  """Return the bytes of free space.

  Args:
    path: str, optional, default '/'
  Returns:
    int, bytes in free space available
  """
  if path is None:
    path = '/'
  try:
    st = os.statvfs(path)
  except __HOLE__ as e:
    raise Error(str(e))

  return st.f_frsize * st.f_bavail  # f_bavail matches df(1) output
dataset/ETHPy150Open google/simian/src/simian/mac/client/flight_common.py/GetDiskFree