Skip to content

Commit

Permalink
refactor(get-modflow): use Path.replace instead of Path.rename (#1822)
Browse files Browse the repository at this point in the history
  • Loading branch information
wpbonelli committed Jun 8, 2023
1 parent 9aa81e1 commit 0deb8f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flopy/utils/get_modflow.py
Expand Up @@ -577,7 +577,7 @@ def add_item(key, fname, do_chmod):
for fpath in extract:
fpath = Path(fpath)
bindir_path = bindir / fpath
bindir_path.rename(bindir / fpath.name)
bindir_path.replace(bindir / fpath.name)
rmdirs.add(fpath.parent)
# clean up directories, starting with the longest
for rmdir in reversed(sorted(rmdirs)):
Expand Down

0 comments on commit 0deb8f6

Please sign in to comment.