Skip to content

Commit 2cc637c

Browse files
authored
Merge pull request #871 from writer/fix-primitive-rename
fix: Use simple rename for S3 compatibility
2 parents b194096 + 0f69a44 commit 2cc637c

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api"
44

55
[tool.poetry]
66
name = "writer"
7-
version = "0.8.3rc20"
7+
version = "0.8.3rc21"
88
description = "An open-source, Python framework for building feature-rich apps that are fully integrated with the Writer platform."
99
authors = ["Writer, Inc."]
1010
readme = "README.md"

src/writer/app_runner.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -881,7 +881,7 @@ def rename_persisted_script(self, from_path: str, to_path: str):
881881
os.rename(from_path_abs, to_path_abs)
882882
except OSError:
883883
# If the error is due to the function not being implemented (like S3/Fuse), we fallback to copy/delete
884-
shutil.copy2(from_path_abs, to_path_abs)
884+
shutil.copyfile(from_path_abs, to_path_abs)
885885
os.remove(from_path_abs)
886886

887887
self.source_files = wf_project.build_source_files(self.app_path)

0 commit comments

Comments
 (0)