Skip to content

Update Command - Check the download is successful before deleting the existing folder #297

@yorkshire-pudding

Description

@yorkshire-pudding

This is a subtask of #111 and relates to the issue-111-update-command branch.

At present the update command deletes the folder and then uses the download_bee_callback() function to re-download the module. If there is a connection issue to GitHub then this could break the site. There is a higher risk of a download failure if multiple projects are being downloaded in close succession.

We should use a temporary folder and check that it is valid before replacing the code.

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature-branchRelates to functionality in a feature branch not in 1.x-1.x

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions