Skip to content
This repository was archived by the owner on Sep 11, 2020. It is now read-only.
This repository was archived by the owner on Sep 11, 2020. It is now read-only.

object.Tree.FindEntry should return ErrFileNotFound rather than errEntryNotFound #883

Closed
@jsravn

Description

@jsravn

If directory is not found, it will return the public error ErrDirNotFound. For a missing file, it returns errEntryNotFound:

return nil, errEntryNotFound

Since the error is private there isn't a way to programmatically check for that condition.

Metadata

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