tamatebako / libdwarfs

C++ library to access DwarFS images
2 stars 1 forks source link

Export a function that reports if a path is within memfs #47

Closed maxirmx closed 2 years ago

maxirmx commented 2 years ago

Similar to

short ruby_packer_if(const char* path)
{
    if (ruby_packer_cwd[0] && '/' != *path) {
        return 1;
    } else if (ruby_packer_is_path(path)) {
        return 1;
    } else {
        return 0;
    }
}

This function is required to support globbing in ruby/dir.c