aflx/callback-android — comment on commit 8904c67fb5e4f7ab17f0db1325c645c974ee7bb3
File: framework/src/com/phonegap/FileTransfer.java line 407
By macdonst:

Change to:

return getEntry(filePath);

which could call the getEntry(String) method in FileUtils. Or you could duplicate a bit of code:

private JSONObject getEntry(String filePath) throws JSONException {
File file = new File(filePath);
JSONObject entry = new JSONObject();

entry.put("isFile", file.isFile());
entry.put("isDirectory", file.isDirectory());
entry.put("name", file.getName());
entry.put("fullPath", file.getAbsolutePath());

return entry;
}