const fs = require('fs');
const path = require('path');

function walk(dir, depth = 0) {
  if (depth > 3) return;
  const files = fs.readdirSync(dir);
  for (const file of files) {
    if (file === 'node_modules' || file === '.git' || file === 'dist') continue;
    const fullPath = path.join(dir, file);
    const stat = fs.statSync(fullPath);
    console.log(' '.repeat(depth * 2) + (stat.isDirectory() ? '[DIR] ' : '[FILE] ') + file);
    if (stat.isDirectory()) {
      walk(fullPath, depth + 1);
    }
  }
}

walk('.');
