Skip to content

Error when there is no Music directory in home directory #220

@wug-ge

Description

@wug-ge

Hi,

I'm a first time user and got an exception trying to download music:

Unhandled rejection Error: ENOENT: no such file or directory, mkdir '/home/wug-ge/Music/Spotify'
at Object.mkdirSync (fs.js:731:3)
at folders.forEach (/opt/AllToMP3/resources/app/node_modules/alltomp3/index.js:1053:10)

Looks like all it needs is a check if a Music directory exists and if not create one. (Or do something like mkdir -p instead)

After creating it the application does still not work for me, but it get's further then before without an exception.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions