Phpml\Dataset\FilesDataset::scanDir PHP Метод

scanDir() приватный Метод

private scanDir ( string $dir )
$dir string
    private function scanDir(string $dir)
    {
        $target = basename($dir);
        foreach (array_filter(glob($dir . DIRECTORY_SEPARATOR . '*'), 'is_file') as $file) {
            $this->samples[] = [file_get_contents($file)];
            $this->targets[] = $target;
        }
    }