src/Rocketeer/Services/Connections/Shell/Modules/Filesystem.php
public function listContents($directory)
    {
        $files = $this->modulable->getConnection()->listContents($directory);
        $files = array_pluck($files, 'path');
        $files = array_map('basename', $files);

        return $files;
    }
public function listContents($directory)
    {
        $files = $this->modulable->getConnection()->listContents($directory);
        $files = array_pluck($files, 'path');
        $files = array_map('basename', $files);

        return $files;
    }
public function listContents ( $ directory ) { $ files = $ this -> modulable -> getConnection ( ) -> listContents ( $ directory ) ; $ files = array_pluck ( $ files , 'path' ) ; $ files = array_map ( 'basename' , $ files ) ; return $ files ; }
Get the contents of a directory.

@param string $directory

@return array
Get the contents of a directory .