Python - Script to find if subfolder exists or not
Posted on 2009-05-13
I'm new to python.
I need to run a script which will delete files/directorys within a subfolder structure only if certain directorys exist.
Parent directory (p:\*fund*\) could be any directory name, for example:
So in above scenario, need to search the root directory (p:\*.*\letters\) for directorys called either reject or printed, then if exist delete the file contents of reject or printed.
I have many task like this one to do, hope that someone can provide me one example then I can tinker with it from then on.
Any help would be apprciated!!
Thanks in advance.