Finding most recently edited file in python

Posted by zztpp5521 on Stack Overflow See other posts from Stack Overflow or by zztpp5521
Published on 2010-04-28T15:44:56Z Indexed on 2010/04/28 15:53 UTC
Read the original article Hit count: 215

Filed under:
|
|
|

I have a set of folders, and I want to be able to run a function that will find the most recently edited file and tell me the name of the file and the folder it is in.

Folder layout:

root
    Folder A
        File A
        File B
    Folder B
        File C
        File D
etc...

Any tips to get me started as i've hit a bit of a wall.

© Stack Overflow or respective owner

Related posts about python

Related posts about file