Oh snap! You are using an old version of browser. Update your browser to get new awesome features. Click for more details.

Magento create directory

Hi Friends,

magento how to check directory already created or not and if directory not exists so create directory
I have use this code it's simple

Code:

// Check folder is created or not
$io = new Varien_Io_File();
$io->checkAndCreateFolder(Mage::getBaseDir('var').DS.'export'.DS.'test');

1 comment

  1. The blog was absolutely fantastic! Lot of great information which can be helpful in some or the other way. Keep updating the blog, looking forward for more contents...Great job, keep it up..
    magento development company in bangalore 

    ReplyDelete