Let me reply to my own post. I kept digging around and found the following:
shutil.rmtree(path[, ignore_errors [, onerror]])
Seems to do the trick. Removes everything, including the directory.
I *knew* there had to be an efficient easy way to do this.
:-)
Okay, I am new to Python. I really like it, by the way.
I need to be pointed in the right direction. I need to empty a directory. There will be files, and sub-directories that also need to be emptied.
I took a look at os.rmdir('c:/foo') but if there are files in it, you get an error message...
Thanks to everyone for your comments.
Since on one else has experienced my problem, I have decided that it is one of the following:
-my file really is corrupt (even though I don't see how)
-the server has some odd configuration
-the administrator of the server is messing with my head
Although...
Here's what I get:
wturner.DEV.pdc-al-lnx21> java -version
java version "1.3.1_03"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1_03-b03)
Java HotSpot(TM) Client VM (build 1.3.1_03-b03, mixed mode)
I suppose that means it's Sun's and it's version 1.3.1_03-b03.
So, has...
I have some code that compiles just fine on Windows 2000.
I then transfer the *.java files (67 in number) to a Linux box. (Red Hat Linux Advanced Server release 2.1AS/i686 Pensacola to be specific.) When I compile it, javac misses the first file alphabetically. I transfered all the files in the...
Okay folks, let me toss out an idea. When you install JDeveloper, one of the folders it creates it JDev. Under that folder is a System folder. In that folder is an XML file called settings.xml. It is a huge file, and about half way through it is an Item with <key><embedded-server-options></key>...
My organization decided that all us developers should share the same copy of JDev via a Citrix server. We have it configured so that we each use our own home folder to store our code. No problem.
However, we will be developing JSP's and Servlets. By default, when you test a JSP or Servlet JDev...
Yeah, I'm afraid you're right. I've looked everywhere I can think of at Microsoft. I'm clicking along thinking I am getting close, then the next hyperlink I click takes me back to the original page. Mmmmmmmmmmm
Here's my problem. We are trying to use Oracle's Discoverer product. It's a web...
We need to automate the production of a number of reports, saved as text, with parameters passed in. These reports need to be produced periodically. By the way, these are Crystal 8 reports.
I have looked at the Seagate website, and it's confusing. I can't make heads or tails about all their...
You know, this sounds like a security issue. Don't applets run in a sandbox? And if the datasource is not on the same server as the applet, isn't access denied? It's a feature, not a bug.
I am not an expert on security in applets. I hope someone with some experience in these matters can expand.
I am out of my depth on this question. JDeveloper does an okay job. Other folks need to chime in on other IDE's.
I can't help myself. One of my favorite articles on OO design (and UML tools) is this:
http://www.javaworld.com/javaworld/jw-01-2002/jw-0111-ootools_p.html
Holub speaks with wisdom...
Put it into a JAR file. Dig around in your Java books, they'll give you all the details.
If you need a good book, I always suggest "Thinking In Java", edition 2. You can buy one in any bookstore, OR get it for FREE!! Go to www.bruceeckel.com, and follow your nose to the download area...
I'll tell you what I'm using right now. Textpad. (www.textpad.com) It's shareware out of Great Britian. Cost $27 bucks American. It's a snap to install. Right away it recoginzes restircted words in Java and colors them, helps you to use and match brackets. And you can use their 'workspaces' to...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.