Skip to content

Commit

Permalink
rename to replace to work with Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
jayqi committed Jul 2, 2020
1 parent 1412c15 commit a44bae0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nbautoexport/export.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def postprocess(self, input: str):
new_assets_dir = new_dir / f"{input.stem}_files"
new_assets_dir.mkdir(exist_ok=True)
for asset in assets_dir.iterdir():
asset.rename(new_assets_dir / asset.name)
asset.replace(new_assets_dir / asset.name)
assets_dir.rmdir()

input.unlink()
Expand Down

0 comments on commit a44bae0

Please sign in to comment.