src/FileJunglist.php
public function saveModifiedFiles($installPath)
    {
        DebugPrinter::log('Saving modified items');
        $tmpRoot = sys_get_temp_dir() . DIRECTORY_SEPARATOR;
        $installPath = trim($installPath, '\\/') . DIRECTORY_SEPARATOR;
        $fsm = new Filesystem;
        DebugPrinter::log(
            'Items to search: %s',
            implode(', ', $this->modifiableFiles)
        );
        foreach ($this->modifiableFiles as $file) {
            $source = $installPath . $file;
            $target = $tmpRoot . md5($source);
            if (!$fsm->exists($source)) {
                DebugPrinter::log('Item `%s` is missing, skipping it', $source);
                continue;
            }
            $args = array($source, $target,);
            DebugPrinter::log('Saving `%s` to `%s`', $args);
            if (is_dir($source)) {
                $fsm->mirror($source, $target);
            } else {
                $fsm->copy($source, $target);
            }
        }
        DebugPrinter::log('Finished saving modified items');
    }
public function saveModifiedFiles($installPath)
    {
        DebugPrinter::log('Saving modified items');
        $tmpRoot = sys_get_temp_dir() . DIRECTORY_SEPARATOR;
        $installPath = trim($installPath, '\\/') . DIRECTORY_SEPARATOR;
        $fsm = new Filesystem;
        DebugPrinter::log(
            'Items to search: %s',
            implode(', ', $this->modifiableFiles)
        );
        foreach ($this->modifiableFiles as $file) {
            $source = $installPath . $file;
            $target = $tmpRoot . md5($source);
            if (!$fsm->exists($source)) {
                DebugPrinter::log('Item `%s` is missing, skipping it', $source);
                continue;
            }
            $args = array($source, $target,);
            DebugPrinter::log('Saving `%s` to `%s`', $args);
            if (is_dir($source)) {
                $fsm->mirror($source, $target);
            } else {
                $fsm->copy($source, $target);
            }
        }
        DebugPrinter::log('Finished saving modified items');
    }
public function saveModifiedFiles ( $ installPath ) { DebugPrinter :: log ( 'Saving modified items' ) ; $ tmpRoot = sys_get_temp_dir ( ) . DIRECTORY_SEPARATOR ; $ installPath = trim ( $ installPath , '\\/' ) . DIRECTORY_SEPARATOR ; $ fsm = new Filesystem ; DebugPrinter :: log ( 'Items to search: %s' , implode ( ', ' , $ this -> modifiableFiles ) ) ; foreach ( $ this -> modifiableFiles as $ file ) { $ source = $ installPath . $ file ; $ target = $ tmpRoot . md5 ( $ source ) ; if ( ! $ fsm -> exists ( $ source ) ) { DebugPrinter :: log ( 'Item `%s` is missing, skipping it' , $ source ) ; continue ; } $ args = array ( $ source , $ target , ) ; DebugPrinter :: log ( 'Saving `%s` to `%s`' , $ args ) ; if ( is_dir ( $ source ) ) { $ fsm -> mirror ( $ source , $ target ) ; } else { $ fsm -> copy ( $ source , $ target ) ; } } DebugPrinter :: log ( 'Finished saving modified items' ) ; }
Saves config files during install.

@param string $installPath Opencart install path.

@return void
@since 0.1.0
Saves config files during install .