Skip to content

Instantly share code, notes, and snippets.

@kevinvdburgt
Created April 26, 2013 13:14
Show Gist options
  • Save kevinvdburgt/5467310 to your computer and use it in GitHub Desktop.
Save kevinvdburgt/5467310 to your computer and use it in GitHub Desktop.

fileatime

The atime of a file is supposed to change whenever the data blocks of a file are being read. This can be costly performancewise when an application regularly accesses a very large number of files or directories. Some Unix filesystems can be mounted with atime updates disabled to increase the performance of such applications; USENET news spools are a common example. On such filesystems this function will be useless.

filectime

In most Unix filesystems, a file is considered changed when its inode data is changed; that is, when the permissions, owner, group, or other metadata from the inode is updated. Note also that in some Unix texts the ctime of a file is referred to as being the creation time of the file. This is wrong. There is no creation time for Unix files in most Unix filesystems.

filemtime

This function returns the time when the data blocks of a file were being written to, that is, the time when the content of the file was changed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment