status of the contents of a directory is written to a file