UnsafeFileUtil.copyDirectory(source, destination);
return null;
}
});
}
<BUG>@Nullable
public static File ensureFileExists(final File file) throws IOException {
return executeIoOperation(new ThreadUtil.Operation<File>() {
</BUG>
@Override

UnsafeFileUtil.copyDirectory(source, destination);
return null;
}
});
}
@Nonnull
public static File ensureFileExists(final File file) throws IOException {
return Preconditions.checkNotNull(executeIoOperation(new ThreadUtil.Operation<File>() {
@Override
