Barryvdh\Elfinder\Console\PublishCommand::copyElfinderFiles PHP Method

copyElfinderFiles() protected method

Copy specific directories from elFinder to their destination
protected copyElfinderFiles ( $destination ) : boolean
$destination
return boolean
    protected function copyElfinderFiles($destination)
    {
        $result = true;
        $directories = array('js', 'css', 'img', 'sounds');
        $elfinderPath = $this->getElfinderPath();
        foreach ($directories as $dir) {
            $path = $elfinderPath . '/' . $dir;
            $success = $this->files->copyDirectory($path, $destination . '/' . $dir);
            $result = $success && $result;
        }
        return $result;
    }