-
Notifications
You must be signed in to change notification settings - Fork 95
[crmsh-4.6] support crm cluster copy to copy directory #1911
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
base: crmsh-4.6
Are you sure you want to change the base?
[crmsh-4.6] support crm cluster copy to copy directory #1911
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files
Flags with carried forward coverage won't be shown. Click here to find out more.
☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
393715b to
edf6dc7
Compare
…mkdir on remote - Resolve local_path to absolute if necessary. - Check existence of local_path before operation. - Determine whether to copy recursively based on path type. - Use Pathlib for safe path operations. - Pre-create target directory on remote nodes using 'test -d ... || mkdir -p ...'.
edf6dc7 to
40fb852
Compare
| source_path = local_path | ||
| parent_path = p.parent | ||
| else: | ||
| absolute_path = p.resolve() |
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.
When p is a symlink /foo/link -> /bar, should we copy the symlink /foo/link or the link target /bar?
Partly backport from #1824:
crm cluster copy#1909