Advertisement
Guest User

Untitled

a guest
Feb 13th, 2016
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. public function save($destinationFolder, $newFileName = null){
  2. $this->_validateFile();
  3.  
  4. if ($this->_allowCreateFolders) {
  5. $this->_createDestinationFolder($destinationFolder);
  6. }
  7.  
  8. if (!is_writable($destinationFolder)) {
  9. // Put a mage::log() and check what is the folder magento is looking for.
  10. Mage::log($destinationFolder);
  11. throw new Exception('Destination folder is not writable or does not exists.');
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement