CintermediatedevopsAI generated

Directory Diff & Sync Report Tool

A utility that recursively compares two directory trees, reporting files that are added, removed, or modified (by size/mtime or content hash), similar to a simplified diff -r. Learners practice recursive directory traversal with dirent.h, stat(), and building comparison reports in C.

Estimate
~8.5h
Steps
5
Completed by
0
Proposed by
codeseed.app

dirent.h · sys/stat.h

Project roadmap

  1. 01

    Implement recursive directory traversal

    ~2h

    Use opendir/readdir to recursively walk both directory trees, building a list of relative paths.

  2. 02

    Compare file existence between trees

    ~1.5h

    Determine which files exist only in the left tree, only in the right, or in both.

  3. 03

    Compare content for shared files

    ~2h

    For files present in both, compare size and mtime, falling back to a byte-by-byte or checksum comparison.

  4. 04

    Generate a structured diff report

    ~1.5h

    Print a categorized report (added/removed/modified) with file paths and change details.

  5. 05

    Add an exclude-pattern option

    ~1.5h

    Support simple glob-based exclude patterns (e.g. *.tmp) to skip files during comparison.

Ready to build this?

Get a GitHub repo and start building. Your AI reviewer checks each step as you go.

~8.5h · 5 steps

Tech stack

dirent.hsys/stat.h