Author Topic: Limiting number of files in directory  (Read 4482 times)


  • Beginner
  • *
  • Posts: 1
Limiting number of files in directory
« on: June 16, 2014, 18:57:06 pm »
Hi everyone, I'm using 1.1.4
We have an issue where GoDaddy has suddenly limited the number of files we can have in a given directory. What this means for us is that our 7700-item Images folder can no longer be added to; we have to break it up into smaller subfolders of no more than 1024 files each. That will take a while to fix, but it's doable; however I'd like to work on it with as little downtime as possible. Since we'll have to remove ALL the images from the Images folder before we can even add subfolders to it, I was hoping we could point VM to another images directory entirely, but from what I'm seeing that's not a quick fix. If anyone has info on doing that I'd appreciate it.

My other concern is that once we do break things up into subfolders, VM will continue to add images to the Images/Resized folder, and that one obviously has over 1024 files in it as well so I assume it would not be able to do so. If we break things up into subfolders, will VM put the resized images into subfolders too, or do we need to stop it from making resized images?

Thanks! Let me know if I need to clarify anything.

GJC Web Design

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 10695
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 3.8.8
Re: Limiting number of files in directory
« Reply #1 on: June 16, 2014, 19:18:45 pm »
Boy! 1.1.4! 

It will all need core hacks as there has to be some count of the number of files in the folder then if greater than 1024 create a new one and post to there etc...

Wouldn't a change of host be far easier?

the image path is defined in administrator/components/com_virtuemart/virtuemart.cfg.php

define( 'IMAGEPATH', $mosConfig_absolute_path.'/components/com_virtuemart/shop_image/' );

GJC Web Design
VirtueMart and Joomla Developers - php developers
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
Contact for any VirtueMart or Joomla development & customisation