Skip to content

Commit

Permalink
inveniogc: tempdir deletion
Browse files Browse the repository at this point in the history
FIX websubmit_icon_creator and  websubmit_file_stamper create tempdirs
instead of files thus deletion has to be recursive.

Addresses #3556

Signed-off-by: Alexander Wagner <alexander.wagner@desy.de>
  • Loading branch information
aw-bib committed Nov 5, 2015
1 parent 40872bf commit c8d638c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions modules/websession/lib/inveniogc.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,15 +177,15 @@ def clean_tempfiles():
% (CFG_TMPDIR, CFG_TMPSHAREDDIR, \
CFG_MAX_ATIME_RM_BIBDOC, vstr))

write_message("- deleting old temporary WebSubmit icons")
write_message("- deleting old temporary WebSubmit icon dirs")
gc_exec_command('find %s %s -name "websubmit_icon_creator_*"'
' -atime +%s -exec rm %s -f {} \;' \
' -atime +%s -exec rm %s -rf {} \;' \
% (CFG_TMPDIR, CFG_TMPSHAREDDIR, \
CFG_MAX_ATIME_RM_ICON, vstr))

write_message("- deleting old temporary WebSubmit stamps")
write_message("- deleting old temporary WebSubmit stamp dirs")
gc_exec_command('find %s %s -name "websubmit_file_stamper_*"'
' -atime +%s -exec rm %s -f {} \;' \
' -atime +%s -exec rm %s -rf {} \;' \
% (CFG_TMPDIR, CFG_TMPSHAREDDIR, \
CFG_MAX_ATIME_RM_STAMP, vstr))

Expand Down

1 comment on commit c8d638c

@invenio-developers
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

3: M102 unrecognized bullet/signature
4: M102 unrecognized bullet/signature
6: M102 unrecognized bullet/signature

Please sign in to comment.