7
I agree with davidl2. using that approach, it might work with some module, but not all the modules.
I cloned a module recently. It is doable, but not easy. Here is what I did and this is kind of tedious but it works
First, I replace the old module name (directory name) with the new module name on all instances. Yes, on all instances. Which means filename/files/directories ... And if the first letter is capital, I will follow that also.
Second, You need to change the database table name.
a)if the table is named as module_name_table_name, then it is easy, just change it to new_module_name_table_name.
b)If the table name is just a table_name, then you need chage it to a new_table_name. And also you need to go through all your files again to search for the table_name and replace it with new_table_name.
This wil give you a clone of the module without try to understand anything in the code. (THis is the easy part :)
HTH