Append filename to destination if source is file#121
Conversation
|
The change itself looks good! For the tests, I would recommend adding a new test instead of adding to |
|
By the way, if you write something like "Fixes #74" in your PR description, GitHub has special functionality to link this PR to that issue and will close the issue automatically when the PR is merged. If it's working, you'd see that the keyword has a dotted underline. The mechanics and triggering keywords are documented here: |
Nice one! |
Good idea, I will separate that test. What do you think about having a class for testing, say |
For this project, we're using test modules (e.g., |
I never used test classes myself, but I was curious to hear if you thought it could be a good idea. I see that most live tests are failing, does it have anything to do with the fact that this is a PR from a forked repository, for which there are no credentials? |
jayqi
left a comment
There was a problem hiding this comment.
A few requested revisions.
I see that most live tests are failing, does it have anything to do with the fact that this is a PR from a forked repository, for which there are no credentials?
Yes, that's the case. Sorry for the inconvenience—I'll think about how we can make this process better. What we did for a previous PR was for one of us (the maintainers) to copy the fork's branch over to the main repository so that the CI can run with the necessary credentials. For now, let's continue development in this PR until we're happy with the changes (using the CI steps before the live tests as a quality check). When it's ready, we can do the same approach of copying the branch to the main repo.
Co-authored-by: Jay Qi <2721979+jayqi@users.noreply.github.com>
Fixes #74.
The
CloudPath.download_tomethod adds the filename to the destination path if the cloud source is a file and the destination is a folder.