copy
copy copied to clipboard
Go copy directory recursively
It would be super useful if this package could copy embed directories. For example: Given the following fs tree: ``` / /assets /foo foo.txt bar.txt hello.txt goodbye.txt main.go ``` It...
``` golang fmt.Println(src,dst) opt := copy.Options{ Skip: func(src string) (bool, error) { return strings.HasSuffix(src, ".ext"), nil }, } if err := copy.Copy( src, dst, opt, );err != nil { fmt.Println("[-]...
We want * `Skip` to have `os.FileInfo` #40 * multiple symlink to be followed #32 * owner permission to be able to be set #48
Copy("test/data.copy", "test/data.copy/alltestdata") Note: when I found the alltestdata and deleted it, MacOS refused to empty the trash because "pathname too long". I tried sudo rm etc but "invalid operation". So...
With Deep symlink copying in use, when a directory containing a symlink is copied and the symlink points directly to the directory or to another directory -- which is subsequently...
FileInfo is needed to determine whether the file needs to be skipped in many cases.
This shows the problem in #32 in the test case harness.
Solves https://github.com/otiai10/copy/issues/132. The behavior of `copy` by default is to overwrite files, i'm doing the same for symlinks here.
I see the option to specify a file system (i.e. embed) for copying. But that seems to assume you are copying within the same file system. Is there a way...
Hi @otiai10, https://github.com/otiai10/copy/pull/108 is not working for Windows, can you check what's going on please? I don't have any errors, I've been printing OnError but it's always nil. I don't...