Skip to content
Snippets Groups Projects
Commit 94a93d2f authored by Alan De Smet's avatar Alan De Smet
Browse files

Document argument

parent 37056b20
Branches
No related tags found
No related merge requests found
...@@ -116,6 +116,8 @@ def unlink_if_old(filename, expiration_time, stats): ...@@ -116,6 +116,8 @@ def unlink_if_old(filename, expiration_time, stats):
expiration time is epoch time, as returned by os.path.getmtime(path) expiration time is epoch time, as returned by os.path.getmtime(path)
or time.time(). or time.time().
stats is a CleaningStats object (above)
If the file doesn't exist, does nothing, does not raise an exception. If the file doesn't exist, does nothing, does not raise an exception.
This is on the theory that another process may have cleaned it up This is on the theory that another process may have cleaned it up
while we were considering doing so. while we were considering doing so.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment