public function listDirectory($path, $recursive = false, $withHidden = true)
    {
        $dirs = $this->formatDirsAndFiles($this->laravelFS->directories($path, $recursive));
        $files = $this->formatDirsAndFiles($this->laravelFS->files($path, $recursive));

        $dirsAndFiles = $this->mergeDirsAndFiles($dirs, $files);

        return $this->formatDirsAndFiles($dirsAndFiles);
    }
public function listDirectory($path, $recursive = false, $withHidden = true)
    {
        $dirs = $this->formatDirsAndFiles($this->laravelFS->directories($path, $recursive));
        $files = $this->formatDirsAndFiles($this->laravelFS->files($path, $recursive));

        $dirsAndFiles = $this->mergeDirsAndFiles($dirs, $files);

        return $this->formatDirsAndFiles($dirsAndFiles);
    }
public function listDirectory ( $ path , $ recursive = false , $ withHidden = true ) { $ dirs = $ this -> formatDirsAndFiles ( $ this -> laravelFS -> directories ( $ path , $ recursive ) ) ; $ files = $ this -> formatDirsAndFiles ( $ this -> laravelFS -> files ( $ path , $ recursive ) ) ; $ dirsAndFiles = $ this -> mergeDirsAndFiles ( $ dirs , $ files ) ; return $ this -> formatDirsAndFiles ( $ dirsAndFiles ) ; }
Return all names in an directory. Files and dirs.

@param string $path
@param bool $recursive (optional)
@param bool $withHidden (optional)

@return array
Return all names in an directory . Files and dirs .