system/modules/DocumentManagementSystem/config/initialize.php
private function initDirectoryStructure()
  {
    if (!file_exists(TL_ROOT . '/' . $this->getDmsBaseDirectory()))
    {
      mkdir(TL_ROOT . '/' . $this->getDmsBaseDirectory(), 0775, true);
      $objDir = \Dbafs::addResource($this->getDmsBaseDirectory());
      
      $objFolder = new \Folder($this->getDmsBaseDirectory());
			$objFolder->unprotect(); 
      
      mkdir(TL_ROOT . '/' . $this->getDmsBaseDirectory() . "/temp", 0775, true);
      $objDir = \Dbafs::addResource($this->getDmsBaseDirectory() . "/temp");
    }
  }
private function initDirectoryStructure()
  {
    if (!file_exists(TL_ROOT . '/' . $this->getDmsBaseDirectory()))
    {
      mkdir(TL_ROOT . '/' . $this->getDmsBaseDirectory(), 0775, true);
      $objDir = \Dbafs::addResource($this->getDmsBaseDirectory());
      
      $objFolder = new \Folder($this->getDmsBaseDirectory());
			$objFolder->unprotect(); 
      
      mkdir(TL_ROOT . '/' . $this->getDmsBaseDirectory() . "/temp", 0775, true);
      $objDir = \Dbafs::addResource($this->getDmsBaseDirectory() . "/temp");
    }
  }
private function initDirectoryStructure ( ) { if ( ! file_exists ( TL_ROOT . '/' . $ this -> getDmsBaseDirectory ( ) ) ) { mkdir ( TL_ROOT . '/' . $ this -> getDmsBaseDirectory ( ) , 0775 , true ) ; $ objDir = \ Dbafs :: addResource ( $ this -> getDmsBaseDirectory ( ) ) ; $ objFolder = new \ Folder ( $ this -> getDmsBaseDirectory ( ) ) ; $ objFolder -> unprotect ( ) ; mkdir ( TL_ROOT . '/' . $ this -> getDmsBaseDirectory ( ) . "/temp" , 0775 , true ) ; $ objDir = \ Dbafs :: addResource ( $ this -> getDmsBaseDirectory ( ) . "/temp" ) ; } }
Init the directory structure
Create structure if not exists
Init the directory structure Create structure if not exists