/**
* {@inheritdoc}
*/
public function getDirectoryContentsList($remoteDirectory)
{
if ($this->isConnected()) {
$contentsList = array_values(array_diff($this->connection->nlist($remoteDirectory), array('.', '..')));
sort($contentsList);
return $contentsList;
}
return array();
}