revert directories added by copying recursively