ZF-12296: Shouldn't zend_cloud_storageservice_adapter_filesystem->storeItem() create dir if not exists?
Description
shouldn't the zend_cloud_storageservice_adapter_filesystem->storeItem($filepath,$data) create a directory for the file if it doesn't exist? Is this a bug?
public function storeItem($destinationPath, $data, $options = array())
{
$path = $this->_getFullPath($destinationPath);
// New part to solve problem
$path_parts = pathinfo($path);
mkdir($path_parts['dirname'],0777);
// End new Part
file_put_contents($path, $data);
chmod($path, 0777);
}
Comments
No comments to display