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

Copy symlinks when calling the CopyDirTo func #23

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

alessio-perugini
Copy link
Contributor

This add support on copying symlink files when calling the CopyDirTo.
We do not travers the link so we might copy also broken symlinks

@codecov-commenter
Copy link

codecov-commenter commented Sep 7, 2023

Codecov Report

Patch coverage: 43.75% and project coverage change: +0.22% 🎉

Comparison is base (0bc48d6) 71.95% compared to head (d59071b) 72.17%.
Report is 1 commits behind head on master.

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     
Flag Coverage Δ
unit 72.17% <43.75%> (+0.22%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Changed Coverage Δ
paths.go 64.02% <43.75%> (+0.89%) ⬆️

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@alessio-perugini alessio-perugini force-pushed the add-initial-support-to-symlinks branch from bb96577 to c3afb8e Compare September 7, 2023 16:22
@alessio-perugini alessio-perugini self-assigned this Sep 7, 2023
@alessio-perugini alessio-perugini added topic: code Related to content of the project itself type: enhancement Proposed improvement labels Sep 7, 2023
paths_test.go Outdated
Comment on lines 275 to 278
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")
Copy link
Contributor Author

@alessio-perugini alessio-perugini Sep 7, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: code Related to content of the project itself type: enhancement Proposed improvement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants