Difference between python - getmtime() and getctime() in unix system

后端 未结 3 799
终归单人心
终归单人心 2020-12-09 08:43

Can someone please specify what is the difference between os.path.getmtime(path) and os.path.getctime(path) in unix systems . As per the defnition

3条回答
  •  一个人的身影
    2020-12-09 09:01

    This is technically not a programming question and therefore shouldn't be on Stack Overflow, but you can find the answers you seek here—which happens to be the first Google result for ctime mtime atime. Short answer: ctime changes when the file's ownership or permissions change, as well as when the data in the file changes. mtime changes only when the data in the file changes.

提交回复
热议问题