Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Ruby generic filesystem libraries

I am looking for a "Virtual File System" type library for ruby. I want to be able to have a completely generic file system that I can easily switch between using Local files and using S3 or using FTP or something like that. (Identical to VFS for Java)

Has anybody used any type of generic file system for ruby (I just need it to support local files and Amazon S3)

Any pointers would be much appreciated.

like image 244
Mitch Dempsey Avatar asked May 25 '10 04:05

Mitch Dempsey


2 Answers

Take a look at Vfs (Virtual File System) - it provides simple and unified interface over Local File System, AWS S3, SFTP.

Overview: http://alexeypetrushin.github.com/vfs

S3 samples: http://alexeypetrushin.github.com/vfs/s3_basics.html

like image 142
Alex Craft Avatar answered Sep 28 '22 21:09

Alex Craft


Can you use something at the OS level like FUSE? I know of several S3 backends for fuse.

like image 27
Digikata Avatar answered Sep 28 '22 20:09

Digikata