By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,264 Members | 1,228 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,264 IT Pros & Developers. It's quick & easy.

get the recently modified files in a folder

P: 32
How can I get the path of files in a folder which are updated most recently?
May 30 '07 #1
Share this Question
Share on Google+
1 Reply


pbmods
Expert 5K+
P: 5,821
What I'm thinking is you can traverse through a directory and use filemtime to grab the modification date of each file.

Then just sort your results by that value. sort should do nicely for this.
May 31 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.