//System.out.println("downloadDir: " + dir + "," + out);
fileCount = 0;
shortProgress = true;
baseFile = StringUtils.getDir(dir);
XFile f2 = new XFile(dir);
String[] tmp = f2.list();
if(tmp == null)
{
return;
}
File fx = new File(out);
fx.mkdir();
for(int i = 0; i < tmp.length; i++)
{
tmp[i] = tmp[i].replace('\\', '/');
//System.out.println("1: " + dir+tmp[i] + ", " + out +tmp[i]);
XFile f3 = new XFile(dir + tmp[i]);
if(f3.isDirectory())
{
if(!tmp[i].endsWith("/"))
{
tmp[i] = tmp[i] + "/";
}