Forums / Developer / DirDepth and file path (ez 3.8.1)

"Please Note:
  • At the specific request of Ibexa we are changing this projects name to "Exponential" or "Exponential (CMS)" effective as of August, 11th 2025.
  • This project is not associated with the original eZ Publish software or its original developer, eZ Systems or Ibexa".

DirDepth and file path (ez 3.8.1)

Author Message

stephane couzinier

Tuesday 07 November 2006 6:05:45 am

Hye,

I have one folder with more than 30000 object inside.
For each object I have one or more images.
When I create the images, there are record in the storage dir like this:
/var/plain_site/images/foldername/object1/aaa/img.png
/var/plain_site/images/foldername/object2/aaa/img.png
etc...

On the disk:
With my 30000 objects I have 30000 folders in the directory /var/plain_site/images/foldername/

I don't think it's good, to have 30000 folders at the same place.

I try to change the DirDepth on the site.ini but this had no effect.
DirDepth is use in the lib/ezfile/classes/ezdir.php but I don't know if this lib is use or not when i upload a new file .

Somebody know a way to store the image file like the content cache file (with a path like /a/b/c/x/myfile.png

Thank's

don't flush the cache