...

/

Choose Template

Choose Template

Learn how to automatically copy and create directories, based on the user’s input.

We'll cover the following...

Why copy templates automatically?

Imagine this scenario. You work for a gaming company. Suppose it is called Games4U. This company has a few templates for simple games like backgammon, chess, draughts, and poker. Each game template acts as the skeleton for the game and can be used to create a customized game of that type for a client.

Your manager has asked you to create a new poker game. You need to make a copy of the poker game’s template and rename it to the project name. You will call it poker-ten-stars.

Usually, you would navigate to the poker template’s directory and copy it to another location under a different name. But you find this tedious to do every single time, so you decide to write a script to automate this process. ...