copy icon indicating copy to clipboard operation
copy copied to clipboard

cannot copy to kernel dir

Open sh4m2hwz opened this issue 2 years ago • 1 comments

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("[-] Cannot copy files to kernel dir:",err)
		return err
	}

output:

/path/to/src/ /lib/modules/4.11.0-generic/build/drivers/tc/ [-] Cannot copy files to kernel dir: stat /lib/modules/4.11.0-generic/build/drivers/tc/: invalid argument

sh4m2hwz avatar Oct 07 '21 10:10 sh4m2hwz

go env

otiai10 avatar Oct 07 '21 22:10 otiai10