25,6 → 25,8 |
String[] act_path_arr; |
|
|
public boolean dirty=true; |
|
public String act_path() |
{ |
String res=""; |
32,6 → 34,12 |
res+=act_path_arr[i]; |
return res; |
} |
|
public void refresh_if_dirty() |
{ |
if (dirty) trigger(); |
dirty=false; |
} |
|
String[] file_list; |
int file_list_length=0; |
65,7 → 73,7 |
} |
canvas.act_menu_select=0; |
//chg_state(STATEID_FILEOPEN); |
trigger(); |
dirty=true; |
} |
|
|
100,12 → 108,14 |
{ |
|
try { |
FileConnection fc = (FileConnection) Connector.open("file:///"+act_path()); |
Enumeration filelist = fc.list("*", true); |
FileConnection fc = (FileConnection) Connector.open("file:///"+act_path()+"DUBwise"); |
// Enumeration filelist = fc.list("*", true); |
fc.mkdir(); |
Enumeration filelist = fc.list();//"*", true); |
int tmp_i=0; |
while(filelist.hasMoreElements()) { |
file_list[tmp_i] = (String) filelist.nextElement(); |
tmp_i++; |
while(filelist.hasMoreElements()) { |
file_list[tmp_i] = (String) filelist.nextElement(); |
tmp_i++; |
/* fc = (FileConnection) |
Connector.open("file:///CFCard/" + fileName); |
if(fc.isDirectory()) { |