check creating directory fails

check creating directory fails