Skip to content

Panics if no XDG Download folder is not set #3

@alexandru0-dev

Description

@alexandru0-dev

Issue:

if there is no XDG user folder is set for "Download", the option is None and unwrapping causes the panic:

dest: dirs::download_dir().unwrap().join("nearby"),

Possible solution:

Use a default dir or exit gracefully also notifying the user about the problem.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions