ImageProfiles::ensureDirectoryExists
We have to do this prior to the actual HTTP request, otherwise we get 403 instead of 404 for non-existent dirs
Signature
protected function ensureDirectoryExists(string
$rootPath )
Parameters
$rootPath
— string- root-relative path of file, eg "/assets/Uploads/foo.jpg"