Announcement

Collapse
No announcement yet.

Change Directory Structure of Actinic Site

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Change Directory Structure of Actinic Site

    I have been having real problems trying to manage the Actinic folder on my Linux hosted Web Site.

    My ISP, Zen Internet have a directory restriction of 2000 files set and they will not increase it. I currently have about 3000 files in my acatalog directory

    I need to delete a few hundred files which Actinic has left on the site and cannot do this with any FTP program because the files I need to delete are alphabetically at the end of the list and don't get displayed.

    It would be more efficient for a number of reasons if Actinic could use a logical directory structure for its files (eg images could go in one directory, data sheets in another etc). This would avoid such a restriction.
    John Legg
    The Debug Store

    sigpic
    http://www.TheDebugStore.com

    #2
    Wouldn't that be great?

    And go one step further - enable products sections and brochure pages to be located in user definable directories.
    Elysium:Online - Official Accredited SellerDeck Partner
    SellerDeck Design, Build, Hosting & Promotion
    Based in rural Northants

    Comment


      #3
      Well, absolutely. That would be very sensible. I agree 100%.

      I am sure that some from the "what's the point of directories" fraternity will complain but structure never did anybody any harm.
      John Legg
      The Debug Store

      sigpic
      http://www.TheDebugStore.com

      Comment


        #4
        I would at least like to see images split from html.

        Comment


          #5
          I had this exact problem.

          I had to use a commandline FTP app and this page:
          http://www.nsftools.com/tips/RawFTP.htm#DELE
          to remove files individually, using their filename.

          FileZillas supports raw commands:
          http://www.gabrielcrowe.co.uk/upload...09-23_1102.png

          Server > Enter Custom Command...

          Comment


            #6
            I had 2k files, and another 2k i did not want to screw with.

            I collected the names of the files in notepad, and used windows to batch them:
            http://www.ericphelps.com/batch/samples/ftp.script.txt

            Comment


              #7
              We did investigate restructuring the application to allow subfolders, but the estimate for the work involved was pretty high, because so many operations are affected. Providing a separate folder for images is a smaller task, and likely to be done at some point, but I'm not sure when ATM.

              I discussed the FTP problem with our technical team. They offered these suggestions, none of which is ideal, but they are the best we can come up with considering the limitations of your hosting.

              1) If you have control panel access to your web hosting, you should be able to delete the files through its file manager, which is immune to the limitations of FTP.
              2) Have you tried sorting the files in your FTP client by something different, eg date?
              3) You could delete all HTML and image files by FTP, ideally out of hours. This should expose any other files you need to delete, and you can remove them and refresh the site.
              4) Delete just HTML files and do the same, then refresh, excluding images. Same concept, but quicker.
              5) Ask your web host to delete the files you don't need
              6) Change web host to one that doesn't have those restrictions

              I hope this helps
              Bruce Townsend
              Ecommerce Product Manager
              Sellerdeck Ecommerce Solutions

              Comment


                #8
                Save two files in your acatalog folder:
                1: badfiles.txt containing:

                Code:
                file1.jpg
                file2.jpg
                file3.jpg

                2: deletejunk.php containing:
                Code:
                <html>
                <head>
                <title>Delete bad files</title>
                </head>
                <body>
                <h2>Off we go</h2>
                <?php
                
                $badfiles = file('badfiles.txt');
                
                foreach ($badfiles as $badfile) {
                	$badfile = trim($badfile);
                	if ( $badfile != '') {
                		echo "<br/>Deleting $badfile status: " . (unlink($badfile) ? 'Done' : 'Not found');
                	}
                }
                ?>
                <h2>Done!</h2>
                </body>
                </html>
                And run

                www.mysite.com/acatalog/deletejunk.php
                Norman - www.drillpine.biz
                Edinburgh, U K / Bitez, Turkey

                Comment

                Working...
                X