-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: os.rename -> shutil.move (#534)
* fix: os.rename -> shutil.move Replace instances of `os.rename` with `shutil.move` to handle the possibility of the destination being a different filesystem. If the source and destination are on the same filesystem, `os.rename` is used per https://docs.python.org/3.11/library/shutil.html#shutil.move Signed-off-by: Weston Steimel <[email protected]> * Change path to account for shutil.move dir semantics As opposed to rename, when moving a dir to a dir, shutil.move will try to nest src under dst. Signed-off-by: Will Murphy <[email protected]> * Remove unused function Signed-off-by: Will Murphy <[email protected]> --------- Signed-off-by: Weston Steimel <[email protected]> Signed-off-by: Will Murphy <[email protected]> Co-authored-by: Will Murphy <[email protected]>
- Loading branch information
1 parent
c3e518b
commit 595a29b
Showing
2 changed files
with
8 additions
and
21 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