[Bugfix] fixed a bug where queryTypeSet() failed on MetadataDao
This commit is contained in:
parent
5820265d1e
commit
24a62bb01d
|
@ -152,10 +152,9 @@ public class MetadataDao {
|
|||
Set<String> keySet = new HashSet<String>();
|
||||
File[] subTypeFiles = queryPath.listFiles();
|
||||
for (File subTypeFile : subTypeFiles) {
|
||||
if (subTypeFile.isFile()) {
|
||||
String filename = subTypeFile.getName();
|
||||
String id = FilenameUtility.getId(filename);
|
||||
keySet.add(id);
|
||||
if (subTypeFile.isDirectory()) {
|
||||
String type = subTypeFile.getName();
|
||||
keySet.add(type);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue