in reply to opendir a directory abstraction?

There is Filesys::Virtual (and its subclasses), but I think not even that supports readdir on itself.

I'm not sure a string would be a good approach as an API. I would expect more something like a tied FH, calling various methods on the tied object to return directory entries. But so far, I have not seen a good abstraction for filesystems.

Replies are listed 'Best First'.
Re^2:opendir a directory abstraction?
by LanX (Saint) on Feb 14, 2021 at 19:15 UTC
    > Filesys::Virtual

    does it implement anything? I looked into the code b/c of missing documentation and all subs look like this

    sub login { my ($self, $username, $password) = @_; carp ref($self)."::login() Unimplemented"; return 0; }

    Cheers Rolf
    (addicted to the Perl Programming Language :)
    Wikisyntax for the Monastery