Skip to content

.part file remains when encountered insufficient disk space #968

@iowk

Description

@iowk

Overview

If downloading fails because of insufficient disk space, .part file remains and is not removed.

Steps to Reproduce

  1. Sync iCloud Photos on a device with insufficient disk space.
  2. Downloading should fail on some files, logging IOError while writing...

Expected Behavior

The .part file should be deleted after downloading fails.

Actual Behavior

The .part file remains.

Context

I think we can add a try-finally block in download_response_to_path to remove the .part file on error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions