Distinguish between full clear (used by rebuild) and real-time-only clear.
Avoid making directories for stubs.