private function ls72(string $path) : array
    {
        $list = [];
        foreach ($this->mlsd($path) as $fileInfo) {
            $list[] = new File($fileInfo);
        }
        return $list;
    }
private function ls72(string $path) : array
    {
        $list = [];
        foreach ($this->mlsd($path) as $fileInfo) {
            $list[] = new File($fileInfo);
        }
        return $list;
    }
private function ls72 ( string $ path ) : array { $ list = [ ] ; foreach ( $ this -> mlsd ( $ path ) as $ fileInfo ) { $ list [ ] = new File ( $ fileInfo ) ; } return $ list ; }
Return list of all files in directory for php 7.2.0 and higher.

@param  string $path
@return \SebastianFeldmann\Ftp\File[]
@throws \Exception
Return list of all files in directory for php 7 . 2 . 0 and higher .