next.js
fb106d54 - fix: Handle non-directory files in cache folder when performing cleanup (#84930)

Commit
85 days ago
fix: Handle non-directory files in cache folder when performing cleanup (#84930) https://vercel.slack.com/archives/C046HAU4H7F/p1760563400531829 Repro this by creating a non-directory file in `cache/turbopack`, and then invalidating it: ``` touch .next/dev/cache/turbopack/notadirectory touch .next/dev/cache/turbopack/__turbo_tasks_invalidated_db ``` Before: ![Screenshot 2025-10-15 at 4.13.33 PM.png](https://app.graphite.dev/user-attachments/assets/670eba50-d87d-4d2a-a28d-d338cfd3863c.png) After: ![Screenshot 2025-10-15 at 4.14.09 PM.png](https://app.graphite.dev/user-attachments/assets/30ba99ab-7859-475c-954a-77c1a0cd45a9.png) See that the directory was cleaned up.
Author
bgw bgw
Parents
Loading