Add check if dir exists when creating one