-
-
Notifications
You must be signed in to change notification settings - Fork 50
copy-tree now checks if src, dest are sym links #195
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
Conversation
src/babashka/fs.cljc
Outdated
| option. Supports same options as [[copy]]. | ||
| Returns `dest` as `Path`" | ||
| Returns `src` as `Path`" |
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 think I'd rather just leave the return value undefined (by not mentioning it) here instead of overspecifying it.
The docstring is probably a remnant of copy's docstring.
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.
Or we fix it, to align with copy and move. Either one is fine with me.
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.
Thanks for the review, I think I'll omit it from the docstring for this PR to avoid scope creep.
I'll create a separate issue to review API return values.
I'll create a separate issue to review API return values.
|
@borkdude, I think, I'll start working on bb fs issues again. Are you good to merge this puppy? |
|
Thanks! |
copy-treenow throws ifsrcordestis a symbolic link when not following links.Closes #188
Also noticed that copy-tree returns
src, notdest, so adjusted docstring accordingly.Please answer the following questions and leave the below in as part of your PR.
This PR corresponds to an issue with a clear problem statement.
This PR contains a test to prevent against future regressions
I have updated the CHANGELOG.md file with a description of the addressed issue.