get the recently modified files in a folder

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • anuragpj
    New Member
    • Jan 2007
    • 32

    get the recently modified files in a folder

    How can I get the path of files in a folder which are updated most recently?
  • pbmods
    Recognized Expert Expert
    • Apr 2007
    • 5821

    #2
    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.

    Comment

    Working...