Skip to content

Check if we can make a Folder always have a sync engine #11983

Open
@erikjv

Description

During construction of a Folder object, a check (checkLocalPath) is done, and the object is only fully initialised when that succeeds. If it fails, the Folder is left incomplete (missing a sync engine, among things), and cannot really be used. This can lead to crashes (#11982) when the engine is accessed anyway.

We should check (and refactor) the Folder construction to be done in a static factory method that can either fail, or produce a valid object.

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions