Issues

ZF-12296: Shouldn't zend_cloud_storageservice_adapter_filesystem->storeItem() create dir if not exists?

Issue Type: Bug Created: 2012-06-20T10:04:57.000+0000 Last Updated: 2012-06-20T10:06:40.000+0000 Status: Open Fix version(s): Reporter: Manuel Fink (funnyprinter) Assignee: Matthew Weier O'Phinney (matthew) Tags: - Zend_Cloud_StorageService

  • storeItem

Related issues: Attachments:

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?

<pre class="highlight"> 
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

Have you found an issue?

See the Overview section for more details.

Copyright

© 2006-2016 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.

Contacts