}
if (file.contains(File.separator)) {
file = new File(file).getName(); // Keep only the name component
}
if (addedFiles.add(file)) {
final Object[] args = { buf, file, null, new TypeOff(0L) };
result = nativeFunction.invokeInt(args);
if (result != 0) {
return false;
}
}