rinceWind has asked for the wisdom of the Perl Monks concerning the following question:
I'm looking for a way inside Perl, of treating an ftp connection (and possibly other protocols such as rsync or webdav), as if it is a file system. Has anyone done this?
I've looked at IO::All::LWP, which goes a long way. This provides a nice abstraction for individual files - that's if you can entertain using IO::All's somewhat unauthodox interface. But, what I am after is the ability to handle directories, i.e. globbing (which I::A::L doesn't appear to do).
If I'm going to write this, I imagine offering a tied file handle / dirhandle interface. I have existing code, which uses glob and open which could use this directly.
Any pointers, clues or help would be appreciated.
--
Oh Lord, won’t you burn me a Knoppix CD ?
My friends all rate Windows, I must disagree.
Your powers of persuasion will set them all free,
So oh Lord, won’t you burn me a Knoppix CD ?
(Missquoting Janis Joplin)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Abstraction of FTP as a file system
by marto (Cardinal) on Aug 16, 2006 at 13:16 UTC | |
by rinceWind (Monsignor) on Aug 16, 2006 at 14:36 UTC | |
by marto (Cardinal) on Aug 16, 2006 at 14:41 UTC | |
|
Re: Abstraction of FTP as a file system
by gellyfish (Monsignor) on Aug 16, 2006 at 13:17 UTC | |
|
Re: Abstraction of FTP as a file system
by talexb (Chancellor) on Aug 16, 2006 at 18:37 UTC | |
by rinceWind (Monsignor) on Aug 16, 2006 at 22:37 UTC | |
by talexb (Chancellor) on Aug 17, 2006 at 01:30 UTC | |
|
Re: Abstraction of FTP as a file system
by leocharre (Priest) on Aug 16, 2006 at 23:07 UTC | |
|
Re: Abstraction of FTP as a file system
by EvanCarroll (Chaplain) on Aug 18, 2006 at 18:30 UTC |