2013-10-21 44 views

回答

9

使用os.lstat() call;它的工作原理與os.stat()類似,但不符合符號鏈接:

import os 

modification_time = os.lstat(path_to_symlink).st_mtime 
相關問題