I want to achieve the two following things:
Every time I create a new directory X in the directory Y the same directory X should be created in another directory Z automatically.
Every time the duplicated folder gets created in directory Z, in it a new .py document with the same name should be created. The first line of the .py document should also state the absolute path of directory X.
How would I go about that? I am on a mac. So I assume I would write some lines of code into my bash profile, so that every time I create a the new directory X in the directory Y with "mkdir" this chain of events gets triggered? Is that a good start?