Skip to content

HubGab-Git/copy_script

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Simple copy scripts

Description

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

Table of Contents

Prerequisites

To use those scripts you need installed Python 3 for python script or/and Go Lang

Usage

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

About

Copy Script in Golang and Python

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published