Environment: 2013, VS2012
I'm trying to develop a custom ribbon button for a document library that creates a folder (ie: a new project) and populates it with a hierarchy of sub-folders. I have some basic c# code that makes the directory structure on the file system and can then dump it into the library, but am unsure of how to call it using the jscript that seems to be the standard for these custom actions. For example, this article describes how to get the button, but I don't know how to bridge that with my c# app. I'm not a javascript developer by any stretch of the imagination, but I can follow instructions pretty well if anyone can point me to an article or can describe the process here.
Of course, alternatives are acceptable. I've seen people saying you can't execute server-side code from a ribbon button, so if there's a different way of creating the folder structure, I'm all ears (figuratively).