directories are logged separately from files