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
From the man page on stat, which os.path.getmtime() and os.path.getctime() both use on Unix systems:
The field
st_mtimeis changed by file modifications, for example, bymknod(2),truncate(2),utime(2)andwrite(2)(of more than zero bytes). Moreover,st_mtimeof a directory is changed by the creation or deletion of files in that directory. Thest_mtimefield is not changed for changes in owner, group, hard link count, or mode.
...The field
st_ctimeis changed by writing or by setting inode information (i.e., owner, group, link count, mode, etc.).
So no, these are not the same.