remote: local: protect uploaded files (#3858)

This commit is contained in:
Paweł Redzyński
2020-05-22 22:59:48 +03:00
committed by GitHub
parent 58c9ff0de2
commit d74358eecd
2 changed files with 15 additions and 0 deletions
+2
View File
@@ -298,6 +298,8 @@ class LocalRemote(BaseRemote):
copyfile(
from_file, tmp_file, name=name, no_progress_bar=no_progress_bar
)
self.protect(tmp_file)
os.rename(tmp_file, to_info)
def _download(