ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> ruby-talk
ruby-talk
Re: HELP
by Michael Kohl other posts by this author
Nov 7 2009 4:38AM messages near this date
HELP | Re: HELP
On Sat, Nov 7, 2009 at 10:19 AM, Newb Newb <revathy.p@[...].com>  wrote:
>  Topic: How can i go about thisi want to move the folders which is older
>  than 2 days from the current date.

Look at the docs for File#mtime and the Dir class, that should help:

http://ruby-doc.org/core/classes/File.html#M002548
http://ruby-doc.org/core/classes/Dir.html

-- 
http://citizen428.net | http://twitter.com/citizen428
Thread:
Newb Newb
Michael Kohl
Newb Newb

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved