CORE if directory cannot be created, throw exception