public function setupDrupalFilesystem()
    {
        $this->taskFilesystemStack()
            ->chmod($this->sitesPath, 0775, 0000, true)
            ->mkdir("{$this->sitesPath}/default/files", 0775, true)
            ->run();

        if ($this->getProjectVersion() >= 8) {
            $install_path = $this->getInstallPath();

            $this->taskFilesystemStack()
                ->mkdir("{$install_path}/profiles/custom", 0775, true)
                ->mkdir("{$install_path}/modules/custom", 0775, true)
                ->mkdir("{$install_path}/modules/contrib", 0775, true)
                ->run();
        }

        return $this;
    }
public function setupDrupalFilesystem()
    {
        $this->taskFilesystemStack()
            ->chmod($this->sitesPath, 0775, 0000, true)
            ->mkdir("{$this->sitesPath}/default/files", 0775, true)
            ->run();

        if ($this->getProjectVersion() >= 8) {
            $install_path = $this->getInstallPath();

            $this->taskFilesystemStack()
                ->mkdir("{$install_path}/profiles/custom", 0775, true)
                ->mkdir("{$install_path}/modules/custom", 0775, true)
                ->mkdir("{$install_path}/modules/contrib", 0775, true)
                ->run();
        }

        return $this;
    }
public function setupDrupalFilesystem ( ) { $ this -> taskFilesystemStack ( ) -> chmod ( $ this -> sitesPath , 0775 , 0000 , true ) -> mkdir ( "{$this->sitesPath}/default/files" , 0775 , true ) -> run ( ) ; if ( $ this -> getProjectVersion ( ) >= 8 ) { $ install_path = $ this -> getInstallPath ( ) ; $ this -> taskFilesystemStack ( ) -> mkdir ( "{$install_path}/profiles/custom" , 0775 , true ) -> mkdir ( "{$install_path}/modules/custom" , 0775 , true ) -> mkdir ( "{$install_path}/modules/contrib" , 0775 , true ) -> run ( ) ; } return $ this ; }
Setup Drupal filesystem.

The setup process consist of the following:
- Change site permission.
- Creates defaults files directory.

@return self
Setup Drupal filesystem .