├── .github ├── FUNDING.yml ├── dependabot.yml └── workflows │ ├── codeql-analysis.yml │ ├── docker-test.yml │ ├── go-coverage.yml │ ├── go.yml │ ├── gopherjs.yml │ ├── vagrant-test.yml │ └── wasm.yml ├── .gitignore ├── LICENSE ├── README.md ├── all_test.go ├── benchmark_test.go ├── copy.go ├── copy_namedpipes.go ├── copy_namedpipes_x.go ├── example_test.go ├── go.mod ├── go.sum ├── options.go ├── patherror_test.go ├── permission_control.go ├── preserve_ltimes.go ├── preserve_ltimes_test.go ├── preserve_ltimes_x.go ├── preserve_ltimes_x_test.go ├── preserve_owner.go ├── preserve_owner_x.go ├── preserve_times.go ├── stat_times.go ├── stat_times_darwin.go ├── stat_times_freebsd.go ├── stat_times_js.go ├── stat_times_windows.go ├── stat_times_x.go ├── symlink_test.go ├── symlink_test_x.go ├── test ├── data │ ├── case00 │ │ └── README.md │ ├── case01 │ │ └── README.md │ ├── case02 │ │ └── README.md │ ├── case03 │ │ ├── README.md │ │ └── foo │ ├── case04 │ │ └── README.md │ ├── case05 │ │ └── README.md │ ├── case06 │ │ ├── README.md │ │ ├── dir_skip │ │ │ └── README.md │ │ ├── file_skip │ │ └── repo │ │ │ ├── .gitfake │ │ │ ├── README.md │ │ │ ├── file_01 │ │ │ └── file_02 │ │ │ └── README.md │ ├── case07 │ │ ├── README.md │ │ ├── dir_0555 │ │ │ └── README.md │ │ └── file_0444 │ ├── case08 │ │ └── README.md │ ├── case09 │ │ ├── README.md │ │ └── symlink │ ├── case10 │ │ ├── README.md │ │ ├── dest │ │ │ ├── baz │ │ │ │ ├── text_fff │ │ │ │ └── text_ggg │ │ │ └── foo │ │ │ │ ├── text_aaa │ │ │ │ └── text_eee │ │ └── src │ │ │ ├── bar │ │ │ ├── text_ccc │ │ │ └── text_ddd │ │ │ └── foo │ │ │ ├── text_aaa │ │ │ └── text_bbb │ ├── case11 │ │ ├── README.md │ │ └── foo │ │ │ └── .keep │ ├── case12 │ │ └── README.md │ ├── case13 │ │ ├── README.md │ │ └── foobaa │ │ │ └── README.md │ ├── case14 │ │ └── README.md │ ├── case15 │ │ ├── README.md │ │ └── symlink │ ├── case16 │ │ └── README.md │ ├── case17 │ │ └── README.md │ ├── case18 │ │ └── assets │ │ │ └── README.md │ ├── case19 │ │ ├── README.md │ │ ├── bar_sequential │ │ │ ├── aaa.txt │ │ │ └── bbb.txt │ │ └── foo_concurrent │ │ │ ├── baz_concurrent │ │ │ ├── eee.txt │ │ │ └── hoge_concurrent │ │ │ │ ├── fff.txt │ │ │ │ └── fuga_concurrent │ │ │ │ └── ggg.txt │ │ │ ├── ccc.txt │ │ │ └── ddd.txt │ ├── case20 │ │ └── foo │ │ │ ├── control.txt │ │ │ ├── index.html.tpl │ │ │ └── main.go.template │ └── example │ │ ├── .git-like │ │ └── HEAD │ │ └── README.md ├── images │ ├── SKIP.archlinux.Dockerfile │ ├── SKIP.centos.Dockerfile │ ├── SKIP.freebsd.Vagrantfile │ └── alpine.Dockerfile └── run ├── test_setup_test.go └── test_setup_x_test.go /.github/FUNDING.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/otiai10/copy/HEAD/.github/FUNDING.yml -------------------------------------------------------------------------------- /.github/dependabot.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/otiai10/copy/HEAD/.github/dependabot.yml -------------------------------------------------------------------------------- /.github/workflows/codeql-analysis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/otiai10/copy/HEAD/.github/workflows/codeql-analysis.yml -------------------------------------------------------------------------------- /.github/workflows/docker-test.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/otiai10/copy/HEAD/.github/workflows/docker-test.yml -------------------------------------------------------------------------------- /.github/workflows/go-coverage.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/otiai10/copy/HEAD/.github/workflows/go-coverage.yml -------------------------------------------------------------------------------- /.github/workflows/go.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/otiai10/copy/HEAD/.github/workflows/go.yml -------------------------------------------------------------------------------- /.github/workflows/gopherjs.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/otiai10/copy/HEAD/.github/workflows/gopherjs.yml -------------------------------------------------------------------------------- /.github/workflows/vagrant-test.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/otiai10/copy/HEAD/.github/workflows/vagrant-test.yml -------------------------------------------------------------------------------- /.github/workflows/wasm.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/otiai10/copy/HEAD/.github/workflows/wasm.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/otiai10/copy/HEAD/.gitignore -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/otiai10/copy/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/otiai10/copy/HEAD/README.md -------------------------------------------------------------------------------- /all_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/otiai10/copy/HEAD/all_test.go -------------------------------------------------------------------------------- /benchmark_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/otiai10/copy/HEAD/benchmark_test.go -------------------------------------------------------------------------------- /copy.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/otiai10/copy/HEAD/copy.go -------------------------------------------------------------------------------- /copy_namedpipes.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/otiai10/copy/HEAD/copy_namedpipes.go -------------------------------------------------------------------------------- /copy_namedpipes_x.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/otiai10/copy/HEAD/copy_namedpipes_x.go -------------------------------------------------------------------------------- /example_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/otiai10/copy/HEAD/example_test.go -------------------------------------------------------------------------------- /go.mod: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/otiai10/copy/HEAD/go.mod -------------------------------------------------------------------------------- /go.sum: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/otiai10/copy/HEAD/go.sum -------------------------------------------------------------------------------- /options.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/otiai10/copy/HEAD/options.go -------------------------------------------------------------------------------- /patherror_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/otiai10/copy/HEAD/patherror_test.go -------------------------------------------------------------------------------- /permission_control.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/otiai10/copy/HEAD/permission_control.go -------------------------------------------------------------------------------- /preserve_ltimes.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/otiai10/copy/HEAD/preserve_ltimes.go -------------------------------------------------------------------------------- /preserve_ltimes_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/otiai10/copy/HEAD/preserve_ltimes_test.go -------------------------------------------------------------------------------- /preserve_ltimes_x.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/otiai10/copy/HEAD/preserve_ltimes_x.go -------------------------------------------------------------------------------- /preserve_ltimes_x_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/otiai10/copy/HEAD/preserve_ltimes_x_test.go -------------------------------------------------------------------------------- /preserve_owner.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/otiai10/copy/HEAD/preserve_owner.go -------------------------------------------------------------------------------- /preserve_owner_x.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/otiai10/copy/HEAD/preserve_owner_x.go -------------------------------------------------------------------------------- /preserve_times.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/otiai10/copy/HEAD/preserve_times.go -------------------------------------------------------------------------------- /stat_times.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/otiai10/copy/HEAD/stat_times.go -------------------------------------------------------------------------------- /stat_times_darwin.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/otiai10/copy/HEAD/stat_times_darwin.go -------------------------------------------------------------------------------- /stat_times_freebsd.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/otiai10/copy/HEAD/stat_times_freebsd.go -------------------------------------------------------------------------------- /stat_times_js.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/otiai10/copy/HEAD/stat_times_js.go -------------------------------------------------------------------------------- /stat_times_windows.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/otiai10/copy/HEAD/stat_times_windows.go -------------------------------------------------------------------------------- /stat_times_x.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/otiai10/copy/HEAD/stat_times_x.go -------------------------------------------------------------------------------- /symlink_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/otiai10/copy/HEAD/symlink_test.go -------------------------------------------------------------------------------- /symlink_test_x.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/otiai10/copy/HEAD/symlink_test_x.go -------------------------------------------------------------------------------- /test/data/case00/README.md: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/data/case01/README.md: -------------------------------------------------------------------------------- 1 | case01 - README.md -------------------------------------------------------------------------------- /test/data/case02/README.md: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/data/case03/README.md: -------------------------------------------------------------------------------- 1 | # Case 03: including symlink -------------------------------------------------------------------------------- /test/data/case03/foo: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/data/case04/README.md: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/data/case05/README.md: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/data/case06/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/otiai10/copy/HEAD/test/data/case06/README.md -------------------------------------------------------------------------------- /test/data/case06/dir_skip/README.md: -------------------------------------------------------------------------------- 1 | Hello -------------------------------------------------------------------------------- /test/data/case06/file_skip: -------------------------------------------------------------------------------- 1 | Hello -------------------------------------------------------------------------------- /test/data/case06/repo/.gitfake/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/otiai10/copy/HEAD/test/data/case06/repo/.gitfake/README.md -------------------------------------------------------------------------------- /test/data/case06/repo/.gitfake/file_01: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/data/case06/repo/.gitfake/file_02: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/data/case06/repo/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/otiai10/copy/HEAD/test/data/case06/repo/README.md -------------------------------------------------------------------------------- /test/data/case07/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/otiai10/copy/HEAD/test/data/case07/README.md -------------------------------------------------------------------------------- /test/data/case07/dir_0555/README.md: -------------------------------------------------------------------------------- 1 | A file under 0500 -------------------------------------------------------------------------------- /test/data/case07/file_0444: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/data/case08/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/otiai10/copy/HEAD/test/data/case08/README.md -------------------------------------------------------------------------------- /test/data/case09/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/otiai10/copy/HEAD/test/data/case09/README.md -------------------------------------------------------------------------------- /test/data/case09/symlink: -------------------------------------------------------------------------------- 1 | README.md -------------------------------------------------------------------------------- /test/data/case10/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/otiai10/copy/HEAD/test/data/case10/README.md -------------------------------------------------------------------------------- /test/data/case10/dest/baz/text_fff: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/data/case10/dest/baz/text_ggg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/data/case10/dest/foo/text_aaa: -------------------------------------------------------------------------------- 1 | This is text_aaa from dest -------------------------------------------------------------------------------- /test/data/case10/dest/foo/text_eee: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/data/case10/src/bar/text_ccc: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/data/case10/src/bar/text_ddd: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/data/case10/src/foo/text_aaa: -------------------------------------------------------------------------------- 1 | This is text_aaa from src -------------------------------------------------------------------------------- /test/data/case10/src/foo/text_bbb: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/data/case11/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/otiai10/copy/HEAD/test/data/case11/README.md -------------------------------------------------------------------------------- /test/data/case11/foo/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/data/case12/README.md: -------------------------------------------------------------------------------- 1 | case12 - README.md -------------------------------------------------------------------------------- /test/data/case13/README.md: -------------------------------------------------------------------------------- 1 | # case13 - PreserveOwner 2 | 3 | https://github.com/otiai10/copy/issues/48 4 | -------------------------------------------------------------------------------- /test/data/case13/foobaa/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/otiai10/copy/HEAD/test/data/case13/foobaa/README.md -------------------------------------------------------------------------------- /test/data/case14/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/otiai10/copy/HEAD/test/data/case14/README.md -------------------------------------------------------------------------------- /test/data/case15/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/otiai10/copy/HEAD/test/data/case15/README.md -------------------------------------------------------------------------------- /test/data/case15/symlink: -------------------------------------------------------------------------------- 1 | README.md -------------------------------------------------------------------------------- /test/data/case16/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/otiai10/copy/HEAD/test/data/case16/README.md -------------------------------------------------------------------------------- /test/data/case17/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/otiai10/copy/HEAD/test/data/case17/README.md -------------------------------------------------------------------------------- /test/data/case18/assets/README.md: -------------------------------------------------------------------------------- 1 | # Hello -------------------------------------------------------------------------------- /test/data/case19/README.md: -------------------------------------------------------------------------------- 1 | # Concurrent case -------------------------------------------------------------------------------- /test/data/case19/bar_sequential/aaa.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/data/case19/bar_sequential/bbb.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/data/case19/foo_concurrent/baz_concurrent/eee.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/data/case19/foo_concurrent/baz_concurrent/hoge_concurrent/fff.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/data/case19/foo_concurrent/baz_concurrent/hoge_concurrent/fuga_concurrent/ggg.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/data/case19/foo_concurrent/ccc.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/data/case19/foo_concurrent/ddd.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/data/case20/foo/control.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/data/case20/foo/index.html.tpl: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/data/case20/foo/main.go.template: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/data/example/.git-like/HEAD: -------------------------------------------------------------------------------- 1 | ref: refs/heads/master -------------------------------------------------------------------------------- /test/data/example/README.md: -------------------------------------------------------------------------------- 1 | # Example Test -------------------------------------------------------------------------------- /test/images/SKIP.archlinux.Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/otiai10/copy/HEAD/test/images/SKIP.archlinux.Dockerfile -------------------------------------------------------------------------------- /test/images/SKIP.centos.Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/otiai10/copy/HEAD/test/images/SKIP.centos.Dockerfile -------------------------------------------------------------------------------- /test/images/SKIP.freebsd.Vagrantfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/otiai10/copy/HEAD/test/images/SKIP.freebsd.Vagrantfile -------------------------------------------------------------------------------- /test/images/alpine.Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/otiai10/copy/HEAD/test/images/alpine.Dockerfile -------------------------------------------------------------------------------- /test/run: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/otiai10/copy/HEAD/test/run -------------------------------------------------------------------------------- /test_setup_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/otiai10/copy/HEAD/test_setup_test.go -------------------------------------------------------------------------------- /test_setup_x_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/otiai10/copy/HEAD/test_setup_x_test.go --------------------------------------------------------------------------------