-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
7119: data loss with mistyped --basetemp #7170
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
7119: data loss with mistyped --basetemp #7170
Conversation
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 @prashant616! I left some comments.
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 @prashant616 for tackling this!
Co-authored-by: Bruno Oliveira <[email protected]>
Co-authored-by: Ran Benita <[email protected]>
Co-authored-by: Ran Benita <[email protected]>
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.
Great work @prashant616, LGTM with a minor suggestion to the changelog entry.
Co-authored-by: Ran Benita <[email protected]>
raise argparse.ArgumentTypeError(msg) | ||
|
||
# check symlinks for ancestors | ||
if is_ancestor(Path.cwd().resolve(), Path(path).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.
@nicoddemus gentle ping, i believe this can go in with the caveat that the path check has to be crosschecked with the other pr |
Thanks a lot @prashant616, and sorry about the delay here! |
Raise exception if
basetemp
argument is empty string or . or parent folder of current working directory.Closes #7119