Change file creation date

I am not a UNIX expert, so maybe I'm wrong, but I think that UNIX (or Linux) don't store file creation time.


Check out os.utime

os.utime(file_path,(new_atime,new_mtime))

Linux and Unix file system stores :

File access, change and modification time (remember UNIX or Linux never stores file creation time, this is favorite question asked in UNIX/Linux sys admin job interview)

Understanding UNIX / Linux file systems


You can use os.utime to change access and modify time but not the creation date.