src/FileJunglist.php
protected function setPermissions($installPath, $basePerms = 0644)
    {
        $fsm = new Filesystem;
        foreach ($this->chmodNodes as $fsNode) {
            $path = $installPath . DIRECTORY_SEPARATOR . $fsNode;
            $isFile = is_file($path);
            $isDir = is_dir($path);
            if (!$isFile && !$isDir) {
                DebugPrinter::log('Filesystem node %s not found', $path);
                continue;
            }
            $perms = $basePerms;
            if ($isDir) {
                $perms |= 0111;
            }
            $args = array($path, decoct($perms),);
            DebugPrinter::log('Chmodding `%s` to `%s`', $args);
            $fsm->chmod($path, $perms);
        }
    }
protected function setPermissions($installPath, $basePerms = 0644)
    {
        $fsm = new Filesystem;
        foreach ($this->chmodNodes as $fsNode) {
            $path = $installPath . DIRECTORY_SEPARATOR . $fsNode;
            $isFile = is_file($path);
            $isDir = is_dir($path);
            if (!$isFile && !$isDir) {
                DebugPrinter::log('Filesystem node %s not found', $path);
                continue;
            }
            $perms = $basePerms;
            if ($isDir) {
                $perms |= 0111;
            }
            $args = array($path, decoct($perms),);
            DebugPrinter::log('Chmodding `%s` to `%s`', $args);
            $fsm->chmod($path, $perms);
        }
    }
protected function setPermissions ( $ installPath , $ basePerms = 0644 ) { $ fsm = new Filesystem ; foreach ( $ this -> chmodNodes as $ fsNode ) { $ path = $ installPath . DIRECTORY_SEPARATOR . $ fsNode ; $ isFile = is_file ( $ path ) ; $ isDir = is_dir ( $ path ) ; if ( ! $ isFile && ! $ isDir ) { DebugPrinter :: log ( 'Filesystem node %s not found' , $ path ) ; continue ; } $ perms = $ basePerms ; if ( $ isDir ) { $ perms |= 0111 ; } $ args = array ( $ path , decoct ( $ perms ) , ) ; DebugPrinter :: log ( 'Chmodding `%s` to `%s`' , $ args ) ; $ fsm -> chmod ( $ path , $ perms ) ; } }
Sets Opencart folder permissions as required in manual.

@param string $installPath Opencart install path.
@param int    $basePerms   Base permissions. Please note that all
directories permissions will be masked by 111
(this will set all three ugo executive bits).

@return void
@since 0.1.1
Sets Opencart folder permissions as required in manual .