From: benjohn@... Date: 2006-04-10T17:05:23+09:00 Subject: Re: Ways to find File MetaData information? > Hi, > > Is there a way were we can find about the "meta data information" of an > existing file in the directory using ruby, like > > 1)When the file was created, > 2)When was it modifed > 3)when was it accessed. etc. > > ie. If we pass the "name/location of the file" it should print the > creation / modified time of that particular file. To the best of my knowledge, Unix / Posix file systems only give you a modification date (your OS may differ :). You can access that using some of the class methods of File. You'll probably be "feeling lucky" at google if you throw it "ruby File class". Cheers, Ben