Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cannot copy to kernel dir #66

Open
sh4m2hwz opened this issue Oct 7, 2021 · 1 comment
Open

cannot copy to kernel dir #66

sh4m2hwz opened this issue Oct 7, 2021 · 1 comment

Comments

@sh4m2hwz
Copy link

sh4m2hwz commented Oct 7, 2021

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
@otiai10
Copy link
Owner

otiai10 commented Oct 7, 2021

go env

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants