Skip to content

Commit

Permalink
fix(download_backup): permission error when copying to non-unix platf…
Browse files Browse the repository at this point in the history
…orms

fixes: #64
  • Loading branch information
jcwillox committed Aug 9, 2022
1 parent f757e46 commit 27e0d94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/auto_backup/handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ async def download_backup(
):
backup = await self._manager.get_backup(slug)
if backup:
shutil.copy(backup.path, destination)
shutil.copyfile(backup.path, destination)
else:
_LOGGER.error(
"Cannot move backup (%s) to '%s' as it does not exist.",
Expand Down

0 comments on commit 27e0d94

Please sign in to comment.