When deleting a node with attachments, the module should delete the upload directory the node was using if it is empty.

Comments

Crell’s picture

Status: Active » Postponed (maintainer needs more info)

Is that how other Drupal upload/file-using modules behave? I don't think it is, but I'm not certain.

thulstrup’s picture

You're right. I just made a quick test using the CCK Filefield module. It leaves an empty directory as well.

Perhapse it could be an options in the settings page whether or not to remove empty directories?

Crell’s picture

Status: Postponed (maintainer needs more info) » Closed (works as designed)

I'd rather follow the lead of other modules on this one. Deleting directories could potentially get messy. If you can provide a well-tested patch for it then reopen this issue, but I am not going to work on it myself.