core/console/commands/ImportController.php
protected function addToDirectory($path, $folderName, $ns, $module)
    {
        if (file_exists($path)) {
            $this->_dirs[$folderName][] = [
                'ns' => $ns,
                'module' => $module,
                'folderPath' => $path.DIRECTORY_SEPARATOR,
                'files' => $this->scanDirectoryFiles($path, $ns, $module),
            ];
        }
    }
protected function addToDirectory($path, $folderName, $ns, $module)
    {
        if (file_exists($path)) {
            $this->_dirs[$folderName][] = [
                'ns' => $ns,
                'module' => $module,
                'folderPath' => $path.DIRECTORY_SEPARATOR,
                'files' => $this->scanDirectoryFiles($path, $ns, $module),
            ];
        }
    }
protected function addToDirectory ( $ path , $ folderName , $ ns , $ module ) { if ( file_exists ( $ path ) ) { $ this -> _dirs [ $ folderName ] [ ] = [ 'ns' => $ ns , 'module' => $ module , 'folderPath' => $ path . DIRECTORY_SEPARATOR , 'files' => $ this -> scanDirectoryFiles ( $ path , $ ns , $ module ) , ] ; } }
Add a given directory to the list of folders.

@param string $path
@param string $folderName
@param string $ns
@param string $module The name/id of the module.
Add a given directory to the list of folders .