How to download a single sample from the GitHub

514
6
06-14-2023 12:28 PM
BrianBulla
Occasional Contributor III

Is there a way to download just a single code sample from GitHub?  I'd like to have a look at this one, but I don't need to download every sample....just this one:

https://github.com/Esri/arcgis-pro-sdk-community-samples/tree/master/Framework/DockpaneSimple

 

0 Kudos
6 Replies
BrianBulla
Occasional Contributor III

OK, this seems to work....but is there a way to do this directly in GitHub??

https://download-directory.github.io/

 

0 Kudos
DanPatterson
MVP Esteemed Contributor

Many suggestions and options... but they depend on your interpretation of "directly"

git - Download a single folder or directory from a GitHub repo - Stack Overflow

which precludes a simple right-click


... sort of retired...
0 Kudos
BrianBulla
Occasional Contributor III

Yeah, I saw that article, but I was just thinking there has got to be a way to do it directly in GitHub.....but maybe not?  

Thanks!

0 Kudos
DanPatterson
MVP Esteemed Contributor

If available, a left=click works for me

(One from my Github as an example)

DownloadFromGithub.png


... sort of retired...
0 Kudos
BrianBulla
Occasional Contributor III

Yes, the "Code" button above only seems to appear if you want to download ALL of the samples (ie. the entire tree).  But if you want to pick and choose what samples to download, there is no option for that....at least not directly in GitHub.

For example, this you can download directly:  https://github.com/Esri/arcgis-pro-sdk-community-samples

But this (a single branch from the above link), you cannot:  https://github.com/Esri/arcgis-pro-sdk-community-samples/tree/master/Framework

It's not a huge problem, just kind of annoying.

0 Kudos
DanPatterson
MVP Esteemed Contributor

I guess that is the way they have it set up.  Everyone of my packages/folders has a code button


... sort of retired...
0 Kudos