content::revision::cleanup-file (private)

 content::revision::cleanup-file -storage_area_key storage_area_key \
    -data data

Defined in packages/acs-content-repository/tcl/content-revision-procs.tcl

This function cleans-up files AFTER the DB-entry was deleted. If the transaction is aborted, the file will not be executed and the file will survive. Thus function should make cr_check_orphaned_files obsolete, which does not scale.

Switches:
-storage_area_key
(required)
-data
(required)
See Also:

Partial Call Graph (max 5 caller/called nodes):
%3 cr_fs_path cr_fs_path (private) content::revision::cleanup-file content::revision::cleanup-file content::revision::cleanup-file->cr_fs_path

Testcases:
No testcase defined.
Source code:
    set dir [cr_fs_path $storage_area_key]
    foreach filename $data {
        ns_log notice "DELETE FILE $dir$filename"
        file delete $dir$filename
    }
Generic XQL file:
packages/acs-content-repository/tcl/content-revision-procs.xql

PostgreSQL XQL file:
packages/acs-content-repository/tcl/content-revision-procs-postgresql.xql

Oracle XQL file:
packages/acs-content-repository/tcl/content-revision-procs-oracle.xql

[ hide source ] | [ make this the default ]
Show another procedure: