lets say that some开发者_如何转开发 files were renamed by Python script, is it possible to get this 'rename time' using Python (It can be seen in Far Manager)? (Windows)
It seems it is not possible through STAT, etc Any ideas ?
If you're asking how to get the modification date of the file, it's this:
>>> import os
>>> import datetime
>>> stat = os.stat('/tmp/bacon')
>>> print datetime.datetime.fromtimestamp(stat.st_mtime)
2011-03-31 08:02:52.953873
It is impossible, OS does not store such info about files. Answered by 'atzz' in comment
 
         
                                         
                                         
                                         
                                        ![Interactive visualization of a graph in python [closed]](https://www.devze.com/res/2023/04-10/09/92d32fe8c0d22fb96bd6f6e8b7d1f457.gif) 
                                         
                                         
                                         
                                         加载中,请稍侯......
 加载中,请稍侯......
      
精彩评论