if (r != null) {
for (Iterator iter = r.iterator(); iter.hasNext();) {
Object obj = iter.next();
if (obj instanceof LsEntry) {
LsEntry entry = (LsEntry) obj;
SftpATTRS attrs = entry.getAttrs();
return new BasicResource(path, true, attrs.getSize(),
attrs.getMTime() * 1000, false);
}
}
}
} catch (Exception e) {
Message.debug("reolving resource error: " + e.getMessage());