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

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