RE: Shell tool

2002-05-13 Thread Martin Katz
Adam, Look at the source for the shutil class. You may be able to adjust shutil.rmtree to fix your problems. Martin Katz, Ph.D. -Original Message- From: Adam Getchell [mailto:[EMAIL PROTECTED]] Sent: Sunday, May 12, 2002 1:50 AM To: [EMAIL PROTECTED] Subject: Shell tool Hello all

RE: Shell tool

2002-05-12 Thread Richard Kemp
Adam Getchell Sent: Sunday, May 12, 2002 10:17 PM To: [EMAIL PROTECTED] Subject: Shell tool Sorry about the HTML mail -- here it is plain text. If I understand the suggestions, to do this properly I should probably be doing a Depth-First Search. Well, interestingly I need to do just this for an

Shell tool

2002-05-12 Thread Adam Getchell
Sorry about the HTML mail -- here it is plain text. If I understand the suggestions, to do this properly I should probably be doing a Depth-First Search. Well, interestingly I need to do just this for another tool which constructs a dependency tree based upon file dependencies for a particular co

Re: Shell tool

2002-05-12 Thread Patricia J. Hawkins
yle18 AG> {font-family:Arial;} AG> @page Section1 AG> {size:8.5in 11.0in; AG> margin:1.0in 1.25in 1.0in 1.25in;} AG> div.Section1 AG> {page:Section1;} --> AG> AG> AG> AG> AG> Hello all, AG>   AG> I’ve just started trying to use Pyth

Re: Shell tool

2002-05-12 Thread Matthew Sherborne
I only skimmed you message, but I couldn't see os.removedirs in it:   >>> help('os.removedirs')Help on function removedirs:   removedirs(name)    removedirs(path) -> None        Super-rmdir; remove a leaf directory and empty all intermediate    ones.  Works like rmdir except that, if the l

RE: Shell tool

2002-05-12 Thread Richard Kemp
ing from the top until there's nothing left.     -Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Adam GetchellSent: Sunday, May 12, 2002 1:50 AMTo: [EMAIL PROTECTED]Subject: Shell tool Hello all,   I’ve just started trying to use

Shell tool

2002-05-12 Thread Adam Getchell
Hello all,   I’ve just started trying to use Python to automate Windows system administration. I wrote my first (long-winded, amateurish) shell-tool to os.path.walk through a directory structure and delete files older than 2 days. (Keeps users from cluttering some temporary storage space