Skip to content

ENOENT when calling stat on directory with slash at the end  #13

@jcubic

Description

@jcubic

I'm trying to use my old service worker for server like file access but it don't work with lightingFS because:

fs.stat('/foo/', (e) => { console.log(e)});

show error:

ENOENT: /foo/

the directory exists because fs.stat('/foo', ...) is working fine.

I need this to be working because I'm distinguishing directories from files using slash at the end of the directory. Probably my worker can be refactored but it would be nice if the library work the same as Node fs.

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