algoliasearch/src/offline/java/com/algolia/search/saas/OfflineClient.java
public boolean hasOfflineData(@NonNull String name) {
        // TODO: Suboptimal; we should be able to test existence without instantiating a `LocalIndex`.
        return new LocalIndex(getRootDataDir().getAbsolutePath(), getApplicationID(), name).exists();
    }
public boolean hasOfflineData(@NonNull String name) {
        // TODO: Suboptimal; we should be able to test existence without instantiating a `LocalIndex`.
        return new LocalIndex(getRootDataDir().getAbsolutePath(), getApplicationID(), name).exists();
    }
Test if an index has offline data on disk.

**Note:** This applies both to {@link MirroredIndex} and {@link OfflineIndex} instances.

**Warning:** This method is synchronous!

@param name The index's name.
@return `true` if data exists on disk for this index, `false` otherwise.