Jump to content

Community

Download: Clean Up On Aisle 3


Recommended Posts

File Name: Clean Up On Aisle 3
File Submitter: Kessler
File Submitted: 12 Oct 2011
File Updated: 12 Oct 2011
File Category: Generic Tools

Clean Up On Aisle 3

Very simple, is made to run in your forums root folder to clear out older files/folders from IPB 1.x and 2.x installs.


THIS SCRIPT IS NOT TESTED! PLEASE DO NOT RUN IT ON A LIVE SITE! THERE IS NO IPS SUPPORT FOR THIS IF YOU RUN IT AND IT CAUSES PROBLEMS!

IMPORTANT





If you run it, I recommend running it on a backup copy of your community. This is more for people who are comfortable examining the code and like to test out things for the fun of it.

This does NOT check to make sure you are running IPB 3.x, it simply attempted to delete some of the known IPB 1.x/2.x related files and folders.

Please report issues in the support topic. If you know how to alter/update scripts and you find a way to improve this script, please let me know so I can include it in a future version.

I repeat, use this at your OWN risk. You have been warned.

Click here to download this file

Link to post
Share on other sites

Viably, this script should do gloriously nothing on a board that started life as 3.x install, correct?


What I am looking to test for you :wink:


It *should* basically run and display a table with a header and no contents underneath. The purpose of it is to do nothing more than to delete files and folders that were used in previous versions but not in the current version. I do appreciate the testing, as getting it to work and there being no damage to other files would help benefit others who want something simple to do the work for them.
Link to post
Share on other sites

It *should* basically run and display a table with a header and no contents underneath. The purpose of it is to do nothing more than to delete files and folders that were used in previous versions but not in the current version. I do appreciate the testing, as getting it to work and there being no damage to other files would help benefit others who want something simple to do the work for them.



Did you use a file comparison tool to tell which files/directories were not in the version your script removes extraneous files for, or was it made by comparing the upload packages manually?

Will this also affect add-ons that require files to be uploaded outside of /admin/application_addon? Some add-ons require files to be uploaded to /public/js (or other directories). Will files such as those be deleted?
Link to post
Share on other sites

Did you use a file comparison tool to tell which files/directories were not in the version your script removes extraneous files for, or was it made by comparing the upload packages manually?



Will this also affect add-ons that require files to be uploaded outside of /admin/application_addon? Some add-ons require files to be uploaded to /public/js (or other directories). Will files such as those be deleted?



It will look for a set of folders in the root folder that were in the older version that are no longer with us, and delete those (sources, style_captcha, setup, archive_in, skin_acp, Lang, Skin etc). It should not touch other folders, like /admin/ or /public/.
Link to post
Share on other sites

It will look for a set of folders in the root folder that were in the older version that are no longer with us, and delete those (sources, style_captcha, setup, archive_in, skin_acp, Lang, Skin etc). It should not touch other folders, like /admin/ or /public/.



Thanks for the response. :)

Could this also delete current skin and language packs?
Link to post
Share on other sites

Could this also delete current skin and language packs?



The sole purpose is to clean up past files, not current files. If someone wants to take this script and develop it into a larger and more involved one, perhaps keeping track of files that have been used and aren't used anymore, then they're welcome to it.
Link to post
Share on other sites

The sole purpose is to clean up past files, not current files. If someone wants to take this script and develop it into a larger and more involved one, perhaps keeping track of files that have been used and aren't used anymore, then they're welcome to it.



I just didn't know whether it deleted older version third-party skins/languages, and if so, whether it knew the difference between older skins/languages and current ones.

It was not a criticism by any means, I appreciate what you're doing with this. :)
Link to post
Share on other sites

It was not a criticism by any means, I appreciate what you're doing with this. :smile:


Wasn't taking it as criticism. A tool that can correctly determine which existing files are no longer needed, based on the current version of the board, would be great. The version checker in the ACP is useful to a degree, but can't really tell you which files are safe to delete, only which files don't match the current version. A mismatched version could mean that some files need to be reuploaded.

To put it simply, for this small script, it's only supposed to go after files and folders that are definitely safe to remove, with those being located at the root of the board. K.I.S.S. - Keep It Short and Simple.
Link to post
Share on other sites

This mod is something I really hope works properly, but one wish if its not in already or if its possible, the ability to just create a text file with the list of whatever this script has found, so that if one so desires can double check the files manually but still get a pretty good idea of what and how many files are obsolete. I have a board that has been upgraded all the way back since version 1 with probably thousands of outdated files.

Link to post
Share on other sites

I'm actually mentally toying with the idea of a script that would keep track of what files are obsolete or still in use. The biggest obstacle is in creating a way to easily keep track of changes from one version to another. Once that's figured out, I can try to sell the idea off to someone who develops mods to see if they'd be willing to write it. I have a few ideas in mind and if it works out, there could be a tool that someone could run that would already know which files are safe to remove from no longer being in use. Still tinkering with it in my head for now though.

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...

Important Information

We use technologies, such as cookies, to customise content and advertising, to provide social media features and to analyse traffic to the site. We also share information about your use of our site with our trusted social media, advertising and analytics partners. See more about cookies and our Privacy Policy