-
-
Notifications
You must be signed in to change notification settings - Fork 3
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
Copy symlinks when calling the CopyDirTo
func
#23
base: master
Are you sure you want to change the base?
Conversation
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## master #23 +/- ##
==========================================
+ Coverage 71.95% 72.17% +0.22%
==========================================
Files 6 6
Lines 353 363 +10
==========================================
+ Hits 254 262 +8
Misses 67 67
- Partials 32 34 +2
Flags with carried forward coverage won't be shown. Click here to find out more.
☔ View full report in Codecov by Sentry. |
bb96577
to
c3afb8e
Compare
paths_test.go
Outdated
exist, err = tmp.Join("broken_dest", "broken_symlink").ExistCheck() | ||
require.False(t, exist) | ||
require.Error(t, err) | ||
require.Contains(t, err.Error(), "too many levels of symbolic links") |
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.
I have to figure out how to trigger this error on Windows.
EDIT: I'm not able to find a way to reproduce the same message on windows. Skipping this strict check for now.
This add support on copying symlink files when calling the
CopyDirTo
.We do not travers the link so we might copy also broken symlinks