-
Notifications
You must be signed in to change notification settings - Fork 118
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
feat: add support for file path #1141
base: main
Are you sure you want to change the base?
Conversation
Thanks for making a pull request! 😃 |
13f28f8
to
06ac7b6
Compare
Signed-off-by: Mohit Marathe <mohitmarathe@proton.me>
06ac7b6
to
2d93413
Compare
@kmehant @HarikrishnanBalagopal Please review this PR! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@kmehant have we tested this with both Docker and Podman?
for sp, dp := range paths { | ||
err = copyDirToContainer(e.ctx, e.cli, containerID, sp, dp) | ||
fi, err := os.Stat(sp) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix indentation. Use go fmt
.
If you are using a text editor like VSCode, VIM, Sublime, etc. installing the Golang extension automatically runs the go formatter when you save the file.
} | ||
} else { | ||
newDestPath := filepath.Join(dp, fi.Name()) | ||
err = copyDirToContainer(e.ctx, e.cli, containerID, sp, newDestPath) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If copyDirToContainer
is being used to copy files then we should rename it as well.
Fixes: #1039