Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: opendir a directory abstraction?

by Corion (Patriarch)
on Feb 14, 2021 at 08:54 UTC ( [id://11128356]=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11128356]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (2)
As of 2024-04-26 00:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found