Zen Cart Logo
Forums / General Questions / OK to delete empty subdirectories?

OK to delete empty subdirectories?

Locked

Views: 987

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
8 Nov 2009, 1:57 AM
#1
ima_newb avatar

ima_newb

New Zenner

Join Date:
Sep 2009
Posts:
3
Plugin Contributions:
0

OK to delete empty subdirectories?

Total newbie question, I know, and I searched but didn't find the answer.

Zen Cart 1.3.8a Patch: 1::

I inherited my store, so wasn't involved from the start. I'm learning my way around much better, but trying to "clean up" the system. For some reason, I'm finding empty and/or duplicated subdirectories. Everything appears to be working fine in my store, so is it ok to delete them?

One example is .htpasswds\public_html\images.

My folder structure is very scrambled, with the empty directories and duplicated directories, but somehow it still seems to work, so I'm afraid to mess with things to much. I did download the file tree hierarchy gif that someone posted, but it seems incomplete.

Would it be okay to rename the folders that are empty or duplicates to something like XYZimages and then test everything to confirm functionality and then delete them later?

Is there any easy (HA) way to figure out which files and folders are really used by my live store so I can delete the rest?

Thanks a ton!

8 Nov 2009, 7:01 AM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: OK to delete empty subdirectories?

Download a clean copy of Zen Cart (link on the home page of zen-cart.com) and unzip it to your PC, retaining folder structure.
That will show you which folders come with Zen Cart.
Then you can decide what to do with the "extra" folders you find on your server.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

8 Nov 2009, 9:11 AM
#3
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: OK to delete empty subdirectories?

Bear in mind that if the person who built the site made use of a CUSTOM template, there may be "empty" folders bearing the "custom" template name. These are to be found at various sub-directory levels - most commonly in the LANGUAGES and MODULES folders.

As Dr Byte suggests, use a "fresh copy" of the zencart software to indicate the directory structure.

There should be a "custom" folder (template over-ride) at every level where you see a corresponding "classic" folder. Even if these are empty, leave them where they are so that (future) customizations can be loaded into their proper places.

20 years a Zencart User

8 Nov 2009, 7:56 PM
#4
ima_newb avatar

ima_newb

New Zenner

Join Date:
Sep 2009
Posts:
3
Plugin Contributions:
0

Re: OK to delete empty subdirectories?

Thanks for the suggestions! Is there anything special I need to do when I download the new copy of ZC so as not to interfere with my live store?

Oh, wait - edited to add that I just had a d'oh moment- my site is not on my local PC so it shouldn't interfere! Disregard! Thanks again!