}
public static boolean isAssetBundle(Path file) {
// check signature of the file
try (DataInputReader in = DataInputReader.newReader(file)) {
AssetBundleHeader info = new AssetBundleHeader();
info.setSignature(in.readStringNull());
return info.hasValidSignature();
} catch (IOException ex) {
return false;
}
}