Skip to content

Conversation

@lread
Copy link
Contributor

@lread lread commented Dec 7, 2025

copy-tree now throws if src or dest is a symbolic link when not following links.

Closes #188

Also noticed that copy-tree returns src, not dest, so adjusted docstring accordingly.

Please answer the following questions and leave the below in as part of your PR.

lread added 3 commits December 6, 2025 13:49
`copy-tree` now throws if `src` or `dest` is a symbolic link
when not following links

Closes #188

Also noticed that copy-tree returns `src`, not `dest`, so adjusted
docstring accordingly.
* master:
  create-dirs recognizes sym-linked dirs on JDK 11 (#194)
option. Supports same options as [[copy]].
Returns `dest` as `Path`"
Returns `src` as `Path`"
Copy link
Contributor

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.

Copy link
Contributor

@borkdude borkdude Dec 12, 2025

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.

Copy link
Contributor Author

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.
@lread
Copy link
Contributor Author

lread commented Jan 1, 2026

@borkdude, I think, I'll start working on bb fs issues again. Are you good to merge this puppy?

@borkdude borkdude merged commit fff58f5 into master Jan 1, 2026
24 checks passed
@borkdude borkdude deleted the lread/copy-tree-nofollow-better-throw branch January 1, 2026 20:12
@borkdude
Copy link
Contributor

borkdude commented Jan 1, 2026

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

copy-tree, when not following links, can throw confusing error

3 participants