Sunday, June 10, 2007

Creating All Parent Directories

This is the easiest way to create all parent directories.


File folder = new File(fileFolder);

// Returns true if all parent directories are created successfully.
// false otherwise.
folder.mkdirs();

No comments: