-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WorkspacePath
: Fix the .rename() and .replace() implementations to …
…return the target path (#130) This PR updates the `.rename()` and `.replace()` implementations on `WorkspacePath` so that they return the target path. (This is part of the public API.) In addition, the `.rename()` method no longer extends the public API with the additional `overwrite` keyword argument. The contract for `.rename()` is that it is allowed to always fail if the target exists, which is how it now behaves. Out of scope for this PR is defining the exact error that is raised if the target exists. This PR is part of the preparation for factoring out common code to implement support for DBFS paths.
- Loading branch information
Showing
2 changed files
with
12 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters