From: Robert Klemme Date: 2011-08-20T21:52:59+09:00 Subject: Re: Get file by inode number? On Fri, Aug 19, 2011 at 5:22 PM, Cody F. wrote: >> Also, these file systems store only forward mappings, i.e. from file >> name to inode number but not the reverse. So retrieving a file name >> from an inode number basically means scanning the complete file system >> and checking each file's inode number.  Definitively something that >> does not fall into the category "efficient". :-) > > Actually, when Linux crashes, it might store orphaned files in the > lost+found directory with the filename listed as the original inode of > the file. That's why it'd be helpful to have that in Ruby. Now you just have to explain where that information should come from... Cheers robert -- remember.guy do |as, often| as.you_can - without end http://blog.rubybestpractices.com/