Can this module clean up the empty directories it leaves when a file path is changed? It seems to delete the files just fine, but i'm left with a bunch of orphan directories that don't contain any files and don't seem to be connected to any nodes.

Thanks, great module.

Comments

deciphered’s picture

Component: Documentation » Code
Category: support » feature

Hi nodecode,

This is something that needs to be done, you're right. I will try to get this feature in as soon as I have some time to dedicate to the development of this module. Hopefully it won't be too far off, but I do have a lot going on IRL at the moment.

Cheers,
Deciphered.

TripleEmcoder’s picture

Subscribing.

nodecode’s picture

just checking if this was ever implemented.

jordanmagnuson’s picture

Title: How to clean up empty directories » Clean up empty directories
Version: 6.x-1.4 » 7.x-1.x-dev
kerios83’s picture

After checking how filefield paths works I think it's not jet implemented.

deciphered’s picture

Status: Active » Fixed

It should be deleting them, I can confirm in my testing it does.

If it is not, please re-open this issue with steps to reproduce the issue.

Cheers,
Deciphered.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

marinex’s picture

Version: 7.x-1.x-dev » 6.x-1.x-dev

Hi, I have try installed 6.x-1.4 and latest 6.x-1.x-dev. When I create node "testing" with image "blue.jpg" it create directory "files/testing" with the image blue.jpg. When I delete this node the image "bule.jpg" is delete, but the folder "testing" is not delete!
I have setup:
File path: : [title]
File name: [filefield-onlyname-original].[filefield-extension-original]

Thanks M.