Using SFTP with PHPSecLib

Code
<?php

use phpseclib\Net\SFTP;

$sftp = new SFTP('mydomain.tdl');

if (!
$sftp->login('username''password')) {
    die(
'Login Failed');
}

var_dump($sftp->nlist());
Result
array(3) {
[0]=>
string(1) "."
[1]=>
string(2) ".."
[2]=>
string(9) "index.php"
}
Used Versions
PHP 7.1, Zend 3.0, Symfony 3.2, Laravel 5.2, PHPUnit 5.6, Doctrine 2.6