/**
  * Get FileExplorer instance
  * 
  * @param string $onfig FileExplorer config name
  * @throws CakeException
  * @return FileExplorer
  */
 protected function &getFileExplorer($config = null)
 {
     if (!$this->FileExplorer) {
         if ($config === null) {
             $config = $this->_config;
         }
         $this->FileExplorer = new FileExplorer($config);
         $this->FileExplorer->autoLoadContents = true;
         $this->FileExplorer->dir($this->_dir);
     }
     return $this->FileExplorer;
 }
Example #2
0
 public function __construct(FileExplorer &$x, $filepath, $create = false, $mode = 0755)
 {
     $this->_dir = $x->dir();
     $this->_File = new File($filepath, $create, $mode);
 }