Well, at least we know some people acually listen to advice given in the 
maillist :-)


Crawling the file system



Does anyone have any Python code that recursively crawls the directory 
structure right down to the lowest directory? I have a Perl script that does 
it, but it's ugly, and doesn't like directories with names like "a.bob", not 
much use when that's the syntax all my students' home directoriey have.
 
Some bright spark on my school board decided to have "random inspections" of 
students files. I figured I could save a lot of time if Python went out and 
scanned all the files and left me a report of files that need human review.
 
Damn teachers!

On Friday 22 November 2002 04:29 pm, Paul wrote:
> Learn Python, not Perl
>
> This is probably the best tutorial to learn the basics of Python:
> http://www.hetland.org/python/instant-python.php
>
> -Paul
>
> On Friday 22 November 2002 04:22 pm, Hamish McBrearty wrote:
> > [EMAIL PROTECTED] writes:
> > >I am chopping lines out of text files.
> > >
> > >Mark
> >
> > I had to do this a couple of weeks back. Administrator needed certain
> > lines cut out of PABX logs. I wrote a Python script that did the job, I
> > personally find Python does a much better job at text processing.
> >
> > Having said that, I find http://www.coderforums.net a fantastic place to
> > exchange code and get help from those more learned than myself.
> >
> > Remember, TIMTOWTDI!
> >
> >
> > -------------------------------------------------
> > Hamish McBrearty     MCSE  MCSA
> > Network Engineer
> > Rangi Ruru Girls' School
> > 59 Hewitts Road
> > Christchurch
> > NEW ZEALAND
> > Ph 03 355-6099
> > Fax 03 355-6027
> > CELL 021 999770
> > E-Mail: [EMAIL PROTECTED]
> > --------------------------------------------------

Reply via email to