-
Notifications
You must be signed in to change notification settings - Fork 2
Closed
Description
Short description of the issue
It seems that ProcessWire creates an empty folder for every page that has a file (or image) field on it.
There is this topic in the forum that says this has been addressed several years ago, but testing a new module with 100k pages I realized that I have 100k empty folders in my installation! https://processwire.com/talk/topic/1585-module-clean-empty-directories-from-siteassetsfiles/
Expected behavior
The folder should be created only if a file is uploaded to that page. It should be removed when all files are deleted to keep /site/assets/files clean.
Steps to reproduce the issue
- Install PW, choose default profile
- Create a new page, template "basic-page" (having an "images" field)
- There will be an empty folder /site/assets/files/#newpageid#
Setup/Environment
- ProcessWire version: 3.0.99
- PHP version: 7.1.6
- MySQL version: 5.7
- Fresh install with AOS + Tracy
szabeszg