#!/usr/bin/env python3
"""Auto-generated by AGI Loop cycle #1053
Task: Write a Python function that checks disk usage of /Eden and /Eden_Archive using os.statvfs
Generated: 2026-02-12T18:23:32.590750
"""

import os

def check_disk_usage():
    paths = ["/Eden", "/Eden_Archive"]
    for path in paths:
        try:
            statvfs = os.statvfs(path)
            block_size = statvfs.f_frsize
            total_blocks = statvfs.f_blocks
            free_blocks = statvfs.f_bfree

            total_space = total_blocks * block_size
            free_space = free_blocks * block_size
            used_space = total_space - free_space

            print(f"Disk usage for {path}:")
            print(f"Total space: {total_space} bytes")
            print(f"Free space: {free_space} bytes")
            print(f"Used space: {used_space} bytes")
            print()
        except Exception as e:
            print(f"Error checking disk usage for {path}: {e}")
            print()

if __name__ == '__main__':
    check_disk_usage()