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&#39;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 =&gt; &#39;mydomain&#39; :hosts =&gt; [&quot;x.x.x.x:6001&quot;],<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; :root =&gt; &#39;/var/mogdata&#39;)<br>mg.store_file &#39;mykey&#39;, &#39;myclass&#39;, afile
<br>assert mg.get_paths(&#39;mykey&#39;).size &gt; 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>