changed param in creating temporary directory

so if directory already exists fire success callback