public function buildAssets($moduleName)
    {
        $module = $this->getModuleDirectory($moduleName);
        if ($module)
        {
            $module .= '/assets';
            if ($this->files->exists($module))
            {
                if (!@$this->files->copyDirectory($module, $this->getAssetDirectory($moduleName)))
                {
                    $this->errors->add('build_assets', 'Unable to build assets');
                    return false;
                }
            }
            return true;
        }
        return false;
    }
public function buildAssets($moduleName)
    {
        $module = $this->getModuleDirectory($moduleName);
        if ($module)
        {
            $module .= '/assets';
            if ($this->files->exists($module))
            {
                if (!@$this->files->copyDirectory($module, $this->getAssetDirectory($moduleName)))
                {
                    $this->errors->add('build_assets', 'Unable to build assets');
                    return false;
                }
            }
            return true;
        }
        return false;
    }
public function buildAssets ( $ moduleName ) { $ module = $ this -> getModuleDirectory ( $ moduleName ) ; if ( $ module ) { $ module .= '/assets' ; if ( $ this -> files -> exists ( $ module ) ) { if ( ! @ $ this -> files -> copyDirectory ( $ module , $ this -> getAssetDirectory ( $ moduleName ) ) ) { $ this -> errors -> add ( 'build_assets' , 'Unable to build assets' ) ; return false ; } } return true ; } return false ; }
Move contents assets module to public directory

@param string $moduleName
@return bool
Move contents assets module to public directory