go-shutil
go-shutil copied to clipboard
golang port of python's shutil - copy a directory in go
Hey there! This line is problematic: https://github.com/termie/go-shutil/blob/bcacb06fecaeec8dc42af03c87c6949f4a05c74c/shutil.go#L261 Because the file object is never closed, there are open file descriptors left lying around. This actually causes problems with external software I'm...
After this change CopyFile try make copy-on-write (constant time) file copy on BTRFS filesystem. If copy-on-write operation is not supported - failback to byte-to-byte file copy. This command works like:...