From: GOTO Kentaro Date: 2002-08-10T01:47:53+09:00 Subject: Re: Getting the file name from a File::Stat object? At Sat, 10 Aug 2002 00:57:05 +0900, Mathieu Bouchard wrote: > On Sat, 10 Aug 2002, GOTO Kentaro wrote: > > You can redefine File.stat as follows, however, I don't recommend this > > because File::stat is not API for a file but just for a inode. For > > example, File::stat can represent a file which has been deleted already. > > Maybe you want to say: File::Stat is not an API for a filename but just > for a file. Yes. Sorry for inaccuracy. > A file and an inode, for most purposes, are the same thing. In particular, > the inode is the entry point of the file, contains everything about it > except filenames and actual file data, and is the sole source for pointers > to the file data. Files are uniquely identified by their inode number. Thanks you for good explanation. I leaned these things from Richard Stevens's "Advanced Programming in the UNIX Environment". This is really nice book. http://www.aw.com/catalog/academic/product/1,4096,0201563177,00.html -- Gotoken