Simple copy scripts in Python and Golang which copy recursively files form source folder to existing destination folder Both scripts works on Windows, Linux and Mac OS
To use those scripts you need installed Python 3 for python script or/and Go Lang
When you have installed Python and/or Glang:
Clone this repo to local machine:
git clone https://github.com/HubGab-Git/copy_script.git
If you would like run Python script Enter python folder:
cd copy_script/python
run example:
python copy.py -s . -d ../
If you would like run Golang script Enter python folder:
cd copy_script/golang
run example:
go run main.go -s . -d ../
Above examples copy all files from current directory to parent directory
help message:
usage: copy_script [-h] [-s SOURCE_DIR] [-d DESTINATION_DIR]
Copy files form one folder to another
options:
-h, --help show this help message and exit
-s SOURCE_DIR, --source-dir SOURCE_DIR
Source directory from where files should be copied
-d DESTINATION_DIR, --destination-dir DESTINATION_DIR
Source directory from where files should be copied