Collections: Can retrieve folder list from outside?

Hello, I have this structure where “docs” folder is for jekyll web.

docs
|_ _includes
|_ _layouts
|_ ...
|_ _config.yml
|_ index.md

folder
|_ sub-folder1
  |_readme.md
  |_ ...
|_ sub-folder2
  |_readme.md
  |_ ...
|_ sub-folder3
  |_readme.md
  |_ ...
|_ sub-folder4
  |_readme.md
  |_ ...
|_ ...

My question it’s about jekyll’s collections, can retrieve folder list for outside from docs?
If yes, how can I do it?

Thanks in advance.

Is this using gh pages? I have seen posts about people using 2 repos before some how. I think that was a GIT trick and not really jekyll.

Maybe this:

Yes, I’m using github.
The “docs” folder has the jekyll config.
I need to retrieve a “list” of sub-folders under folder root.