Skip to content

Handle "stat <filepath>: no such file or directory" error in openExistingOrNew function #213

@honeychaudharyc

Description

@honeychaudharyc

Description

if os.IsNotExist(err) {

This does not handle stat <filepath>: no such file or directory error when a file is not present at the location.

Fix - documentation here suggests we should use errors.Is(err, fs.ErrNotExist).

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