From: James Britt Date: 2006-04-10T23:14:03+09:00 Subject: Re: Ways to find File MetaData information? Alexandru E. Ungur wrote: >>>>sender: "Dinesh Umanath" date: "Mon, Apr 10, 2006 at 03:53:27PM +0900" <<> >>Hi, > > 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. > > Yes, there is: http://www.rubycentral.com/ref/ref_c_file.html That page has docs for Ruby 1.6. You may prefer to look at the 1.8.4 (i.e. current stable release) docs: http://ruby-doc.org/core/classes/File.html -- James Britt "In physics the truth is rarely perfectly clear, and that is certainly universally the case in human affairs. Hence, what is not surrounded by uncertainty cannot be the truth." - R. Feynman