Skip to content

Instantly share code, notes, and snippets.

@reflog
Created June 26, 2010 08:40
Show Gist options
  • Save reflog/453908 to your computer and use it in GitHub Desktop.
Save reflog/453908 to your computer and use it in GitHub Desktop.
final String dir = System.getProperty("fileconn.dir.memorycard")+ "BlackBerry/SubFolder/";
public final static void createDir(String dir) {
FileConnection fconn;
try {
fconn = (FileConnection) Connector.open(dir,
Connector.READ_WRITE);
if (!fconn.exists())
fconn.mkdir();
fconn.close();
} catch (Exception e) {
Utils.log("Error: " + e.getClass() + " "
+ e.getMessage());
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment