Do you get any exceptions?
Is the card write-protected (some have that cheeky little write-protector switch on them.)
Does the folder "Blackberry" exist on the sd card? (it will not be created automatically.)
Can you at least read from the card? I use the function below to scan all folders and report them - see if that works for you. Apologies for the slack string appending!
Code:
...
scanFolder( "SDcard/", 0 );
...
...
private void scanFolder( String path, int deep ){
FileConnection fc = null;
try{
fc = (FileConnection)Connector.open( "file:///" + path );
Enumeration fl = fc.list();
while( fl.hasMoreElements() ){
String file = (String)fl.nextElement();
boolean bDir = false;
FileConnection fd = (FileConnection)Connector.open( "file:///" + path + file );
try{
bDir = fd.isDirectory();
}finally{
try{ fd.close(); }catch( Throwable th ){ ; }
fd = null;
}
if (bDir){
StringBuffer sb = new StringBuffer();
int i = 0;
while( i++ <= deep ) sb.append( " " );
sb.append( file );
// report directory name here
scanFolder( path + file, deep+1 );
}
}
}catch( IOException ioe ){
// report ioe here
}catch( SecurityException se ){
// report se here
}catch( Throwable th ){
// report th here
}finally{
if (fc != null){
try{ fc.close(); }catch( Throwable th ){ ; }
fc = null;
}
}
}