Every once in a while, a thread pops up in Newbie Questions or Requests for a way to easily send a fair stack of files to the client without having to type it all out themselves, and the response generally include a solution that recursively loops through all the folders starting at the branch the function is given.
This is bad. Lack of care will send all the models the server has to the client, or some other bulky solution that isn’t very efficient.
Ages ago, I made a generator for myself and have posted it a few times, and just want to make a general thread on this so more people can get it if they want.
Requires .Net 3.5.
Filters out certain things - svn data, hidden folders ( although I suspect it’s broken ), and lua folders along with some others like the toybox folder as well as a few more file types.
April 26, 2011 - Remade again to be simpler.
Supports bz2 compression and supports decent dialogs on modern operating systems with fallbacks for xp. Also ditched the previous split forms in favor of it being easier in general to use.
It’s also a lot faster - I’m able to load my garrysmod folder in a fraction of the time it took the previous version.
May 27, 2010 - Completely remade from scratch.
Includes an easy to use directory browser rather than just a browse folder dialog ( although that option still exists ). Should be somewhat faster as well in regards to generating files. Tested lightly, let me know if something doesn’t work.
File is generated in the same folder as the executable.
Does contain some things that are relatively hard coded, such as the resource file name and ignored folders.
If you don't need this, please don't post saying it's useless Please don't post telling me to program it in another language. I don't care.
That said, this isn’t licensed code, so do whatever you want with it, even sell it if your heart desires. However, do not claim it is yours because it will be very obvious.