Hi all, I'm a new user of MogileFS. I'm using it for a senior project at my university. Anyway, for my situation it would be helpful to get back the original file names of the files instead of 001.fid and the like. After some investigation, I found the FilePaths plugin in the MogileFS source which seems to do just that. However, I can't figure out how to use it. Furthermore, I can't find any documented record of anyone else actually using it.
<br><br>So my question is this: has anyone ever used the FilePaths plugin, and if so, what does it do and how do you use it? Here's what I tried:<br><br>(using a ruby client from a rails app...)<br><br>My test code looks like this:
<br><br>mg = MogileFS::MogileFS.new(:domain => 'mydomain' :hosts => ["x.x.x.x:6001"],<br> :root => '/var/mogdata')<br>mg.store_file 'mykey', 'myclass', afile
<br>assert mg.get_paths('mykey').size > 0<br><br>Pretty simple, just store the file and assert that it got stored somewhere. I got MogileFS set up so that works fine. Then I tried to add this line to /etc/mogilefs/mogilefsd.conf:
<br><br>plugins FilePaths<br><br>And then the client blows up, the list of paths it receives is nil and the test fails. What else do I have to do to get the plugin working? Thanks.<br><br>Matt<br><br><br>