I'm looking for a way to find out the creation date of a file. I'm using the readdir() to get the contents of a directory but can't find out the date of creation of the listet files.
fileatime(), filectime() and filemtime() all don't do the right job ... (last access, last changed and last modified)
how can I get file creation date?
Moderator: General Moderators
I don't think ext2 keeps track of file creation time, filemtime() is last-modified, i believe that is as close as you can get..
The ext2 array flag i_ctime is some places commented as "creation time", but I believe that is wrong, it is the inode's change time, and is (usually) updated whenever the file is access or modified..
The ext2 array flag i_ctime is some places commented as "creation time", but I believe that is wrong, it is the inode's change time, and is (usually) updated whenever the file is access or modified..