String query = "SELECT * FROM tsk_files WHERE fs_obj_id = " + fs.getId()
+ " AND (meta_type = " + TskData.TSK_FS_META_TYPE_ENUM.TSK_FS_META_TYPE_REG.getMetaType() +
") AND (known != " + FileKnown.KNOWN.toLong() + ") AND (size > 0)";
try {
ResultSet rs = sc.runQuery(query);
<BUG>return sc.resultSetToFsContents(rs);
} catch (SQLException ex) {</BUG>
logger.log(Level.WARNING, "Couldn't get all files in FileSystem", ex);
return Collections.EMPTY_SET;
}

String query = "SELECT * FROM tsk_files WHERE fs_obj_id = " + fs.getId()
+ " AND (meta_type = " + TskData.TSK_FS_META_TYPE_ENUM.TSK_FS_META_TYPE_REG.getMetaType() +
") AND (known != " + FileKnown.KNOWN.toLong() + ") AND (size > 0)";
try {
ResultSet rs = sc.runQuery(query);
List<FsContent> contents = sc.resultSetToFsContents(rs);
rs.getStatement().close();
rs.close();
return contents;
} catch (SQLException ex) {
logger.log(Level.WARNING, "Couldn't get all files in FileSystem", ex);
return Collections.EMPTY_SET;
