This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
I am trying to write a little java script and i want to see if i can test if a folder exists or not. I looked it up (yea google!) and found this reference
public static boolean exists(Folder folder)
Tests to see if a folder exists in system with simple test that folderID > 0. Use only on folder objects created using FolderController.get() methods. If you manually set the folderID, this test will not be accurate return true if successful
Does that mean that all i have to do to call it is something like this? exists(foldervariable) ?
So if you're doing coursework at Stanford, then maybe that's what you want. Otherwise, you might have better luck with something from the standard Java 1.5.0 API. In particular, java.io.File. Note that the File class has methods exists() and isDirectory().
Originally posted by Steve Van: ...I am trying to write a little java script...
"We're kind of on the level of crossword puzzle writers... And no one ever goes to them and gives them an award." ~Joe Strummer sscce.org
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com