1

Migrating Plugins to Craft 3 starts bugging me, seems that really everything changed. Is there an equivalent to IOHelper::ensureFolderExists in Craft 3?

1

In Craft 3, the IOHelper class has been replaced by the FileHelper class.

The closest Craft 3 equivalent to IOHelper::ensureFolderExists() is

FileHelper::createDirectory($path);

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.