Skip to content

Commit

Permalink
Revert disabling atime for folders (#13)
Browse files Browse the repository at this point in the history
We disabled tracking the atime of folders for testing the functionality
of the file expiry emails. This was because previous versions of this
library had been updating the atime of folders while collecting data and
so the atime info is not useful to us right now.

We should change to using this version of the library after another
month and a half have passed at least.
  • Loading branch information
cehune authored Jan 4, 2025
1 parent 944ceab commit 62a87ee
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "file_auto_expiry"
version = "0.0.7"
version = "0.0.8"
description = "WATCloud project containing scripts to check if directories / files are expired"
readme = "README.md"
requires-python = ">=3.7, <4"
Expand Down
2 changes: 1 addition & 1 deletion src/file_auto_expiry/utils/expiry_checks.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ def is_expired_folder(folder_path, folder_stat, expiry_threshold):
"""
file_creators = set()
# timestamps for the folder itself
recent_atime = 0
recent_atime = folder_stat.st_atime
recent_ctime = folder_stat.st_ctime
recent_mtime = folder_stat.st_mtime
folder_creator = get_file_creator(folder_path)
Expand Down

0 comments on commit 62a87ee

Please sign in to comment.