Gossamer Forum
Home : Products : Links 2.0 : Discussions :

Directory removal....

Quote Reply
Directory removal....
For those of you who have built your links pages and then had to change the file extension or something and have been left with lots of redundant pages, or if you have removed some categories and now have redundant directories, here is the simplest of scripts to remove them easily....

You can just set it up to remove the whole of your pages directory and then rebuild.

#!/usr/bin/perl

print "Content-type: text/plain\n\n";

$path_to_pages = "/home/sites/site6/www/pages";

`rm -r $path_to_pages`;

print "All Done!";


BE CAREFUL with it.

This is just a simple solution for people who don't have telnet access or need a way to quickly remove all their pages/directories.

Paul Wilson.
Installations:
http://www.wiredon.net/gt/
Subject Author Views Date
Thread Directory removal.... Paul 1390 Mar 31, 2001, 4:18 AM
Post Re: Directory removal....
hacker 1306 Mar 31, 2001, 9:39 PM