Assets
|-man
| |-myhtml.html
|
|-women
| |-myhtml.html
这是我的文件夹结构有时我需要检查文件是否存在于男性中有时我需要检查文件是否存在于女性中我该怎么办。
try {
fileExist = Arrays.asList(getResources().getAssets().list("")).contains(pathInAssets);
} catch (FileNotFoundException e) {
fileExist = false;
} catch (IOException e) {
e.printStackTrace();
}
这只给出了我不能进去检查存在的男人和女人的名单。
他们还有其他方法可以检查吗