public File getTaskStoreDir(File storeBaseDir, String storeName, TaskName taskName, TaskMode taskMode) {
    TaskName taskNameForDirName = taskName;
    if (taskMode.equals(TaskMode.Standby)) {
      taskNameForDirName =  StandbyTaskUtil.getActiveTaskName(taskName);
    }
    return new File(storeBaseDir, (storeName + File.separator + taskNameForDirName.toString()).replace(' ', '_'));
  }
Creates and returns a File pointing to the directory for the given store and task, given a particular base directory.
In case of a standby task (TaskMode.Standby), the storeDirectory is the same as it would be for an active task.

@param storeBaseDir the base directory to use
@param storeName the store name to use
@param taskName the task name which is referencing the store
@param taskMode the mode of the given task
@return the partition directory for the store
samza-core/src/main/java/org/apache/samza/storage/StorageManagerUtil.java