How about "Unable to write to the "%s" directory"? It reads better imho.