Edgewall Software

Opened 10 years ago

Last modified 10 years ago

#11740 closed defect

Deleting the last attachment of a wiki page does not delete the respective attachment folder — at Initial Version

Reported by: Francesca Mazzoni <francesca.mazzoni@…> Owned by:
Priority: normal Milestone:
Component: attachment Version: 0.12.5
Severity: minor Keywords:
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

I'm on Debian stable with Python 2.7.3 and installed from Debian package.

When I delete an attachment from a Wiki page that contains only that attachment, the (empty) folder in which the attachment was stored remains in the filesystem.

Steps to reproduce: 1) Create a new wiki page (say MyPage), add an attachment (say MyAttach.tgz). The attached file is stored in <trac-env>/attachments/wiki/MyPage/MyAttach.tgz 2) Delete the attachment, thus leaving the page without attachments.

I still have the <trac-env>/attachments/wiki/MyPage folder I think that the folder should be removed, since it is empty.

Change History (0)

Note: See TracTickets for help on using tickets.