Generic File Access

Piers Harding piers at ompa.net
Sun Oct 13 01:29:48 CDT 2002


Sounds like VFS is the one - trouble is that it would be a lot of XS
work.

Inline has an AUTOWRAP facility to generate the attaching stubs ( in
Inline::C ) - it may help out here?

Cheers.



On Sat, Oct 12, 2002 at 07:51:04PM +1000, Scott Penrose wrote:
> Hey Dudes
> 
> I have a major need for some generic file access API in Perl.
> A generic access API would have the one polymorphic interface to SSH 
> (SCP), FTP, WebDAV, Local etc.
> 
> The following are the options I have.
> 	- XS mapping to Gnome VFS (Gnome's virtual file system)
> 	- XS mapping to CURL (Curl is a set of libs and command lines to do 
> this)
> 	- Write a higher level API (DBI style) to do this.
> 
> My problems (and advantages) with each are as follows.
> 
> VFS
> ===
> 	- Very complicated
> 	- Very big
> 	- Good as it is so complete
> 	- Lots of call backs
> 
> Curl
> ====
> 	- Behind in crucial implementations (SCP/SSH is still not supported)
> 	- Simpler
> 
> Roll my own
> ===========
> 	- Could be simple, depending on level
> 	- I have written a basic implementation but as soon as I
> 	  read the VFS functionality I realise that others could
> 	  require much more than I could provide
> 
> So I have to think about what the best approach is. I was looking for 
> either some sensible feedback, how other people have dealt with the 
> situation and if any other solutions are out there.
> 
> Any ideas ? Feedback ? Other alternatives ?
> 
> :-)
> 
> Scott
> -- 
> Scott Penrose
> Open source developer
> http://linux.dd.com.au/
> scottp at dd.com.au
> 
> Dismaimer: Open sauce usually ends up never coming out (of the bottle).



More information about the Melbourne-pm mailing list