utils/src/main/java/com/streamsets/datacollector/io/DataStore.java
public boolean exists() throws IOException {
    acquireLock();
    try {
      verifyAndRecover();
      return Files.exists(file) && Files.size(file) > 0;
    } finally {
      release();
    }
  }
public boolean exists() throws IOException {
    acquireLock();
    try {
      verifyAndRecover();
      return Files.exists(file) && Files.size(file) > 0;
    } finally {
      release();
    }
  }
Check if the DataStore exists and contains data.
This method will check for the presence of the set of files that can be used to read data from the store.