Rprop / GitHubDownloader

download a single folder or directory from a GitHub repository

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Optimal Solution

e.g. target: https://github.com/dotnet/corefx/tree/master/src/Native/Windows/clrcompression/zlib-intel/
trunk_url: https://github.com/dotnet/corefx/trunk/src/Native/Windows/clrcompression/zlib-intel/
trunk_url(with branch): https://github.com/dotnet/corefx/branches/master/src/Native/Windows/clrcompression/zlib-intel/
svn checkout trunk_url

GitHubDownloader

A C++ example shows how to download a single folder or directory from a GitHub repository.

Feature

1.Lightweight 2.Multi-threads

Example Output

creating directory zlib-intel/... done
fetching https://github.com/dotnet/corefx/tree/master/src/Native/Windows/clrcompression/zlib-intel/... succeed
downloading 20 files from https://raw.githubusercontent.com/dotnet/corefx/master/src/Native/Windows/clrcompression/zlib-intel/...
->README.txt 3
->adler32.c 3
->crc32.h 3
->deflate.h 3
->deflate.c 3
->crc32.c 3
->deflate_medium.c 3
->deflate_quick.c 3
->fill_window_sse.c 3
->crc_folding.c 3
->match.c 3
->trees.c 3
->gzguts.h 3
->x86.c 3
->x86.h 3
->trees.h 3
->zlib.h 3
->zutil.c 3
->zconf.h 3
->zutil.h 3
++adler32.c
++x86.h
++deflate_medium.c
++crc_folding.c
++trees.h
++crc32.c
++gzguts.h
++zutil.c
++README.txt
++fill_window_sse.c
++deflate_quick.c
++deflate.h
++trees.c
++zlib.h
++match.c
++crc32.h
++zutil.h
++x86.c
++deflate.c
->zconf.h 2
++zconf.h
finished.
Press any key to continue . . .

About

download a single folder or directory from a GitHub repository


Languages

Language:C++ 100.0%