success and fail in creating directory

both success and fail have the same function