Python script that takes a file and clones it in a directory and all subdirectories.
This script takes a file you specify and clones it. It creates a copy of it inside every directory, including subdirectories.
Use this plugin to clone an index.php file into all the directories of your WordPress plugin.
- Works with any file type
- Specify the file location and destination
- Download a copy of the script to your computer.
- Open a command prompt or terminal with admin privileges and navigate to where the script file is located using
cdto change directories. - Run the command:
python clone-file.pyto start the script. - When prompted, enter the directory where the file you want to clone is located.
- When prompted, enter the file name with the extension (ie.
index.php) that you want to clone. - When prompted, enter the directory where you want the file to be cloned.
Once you do that, the script will perform it's magic and notify you when the job has been completed.
- Initial release of the plugin.
- First release of the script, no upgrade notices.
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
This plugin is open-sourced software licensed under the GPLv2 license.