Urgen
Urgen

Reputation: 1223

Github Folder structure or layout issue

I have projects save/committed in Github repo, but i have been struggling to understand, why structure/layout of the folders are not display in a way it is save in a local drive. Let's take an example:-

Folder layout/structure in a local drive:-

r: src
 c: services
  c:  Basket
   c:  Basket.API

Folder layout/structure save in Github repo: -

r: src
 c: Services
  c: Basket/Basket.API


Legend: r: root
        c: child

Why folders layout are not sync in a way it is in a local drive with Github Repo. Some of folders did save the way i wanted but not all of them. I mean i want it should show the same as it is in local drive like below:-

r: src
 c: services
  c: basket
    c: basket.api

Any idea??

Upvotes: 0

Views: 402

Answers (1)

Aiden Grossman
Aiden Grossman

Reputation: 347

Github collapses folders when the folder only contains a single folder/file. It does not collapse the folder if there are two or more items in it. For example, if there is a folder A, which has a single folder in it B, then Github would collapse it to A/B. It would work the same if B was a file rather than a folder. If we have a folder A that contains two items, B and C, Github would not collapse the directory structure at all.

Upvotes: 1

Related Questions