if(file.getName().equals(".") || file.getName().equals("..")) continue;
query.addRow();
row++;
query.setAt("attributes",row,"");
query.setAt("isdirectory",row,Caster.toBoolean(file.isDirectory()));
query.setAt("lastmodified",row,new DateTimeImpl(file.getTimestamp()));
query.setAt("length",row,Caster.toDouble(file.getSize()));
query.setAt("mode",row,FTPConstant.getPermissionASInteger(file));
query.setAt("type",row,FTPConstant.getTypeAsString(file.getType()));
//query.setAt("permission",row,FTPConstant.getPermissionASInteger(file));
query.setAt("raw",row,file.getRawListing());