attachments::image::expire (private)

 attachments::image::expire

Defined in packages/attachments/tcl/image-procs.tcl

Remove disposable variants after seven days; originals remain in the CR.

Partial Call Graph (max 5 caller/called nodes):
attachments::image::directory attachments::image::directory (private) attachments::image::expire attachments::image::expire attachments::image::expire->attachments::image::directory

Testcases:
No testcase defined.
Source code:
    set cutoff [expr {[clock seconds] - 7 * 86400}]
    foreach path [glob -nocomplain -directory [directory] -types f *] {
        catch {
            if {[file mtime $path] < $cutoff} { file delete -- $path }
        }
    }
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: