Target dir creation
Cache was in incorrect state when link failed