java.lang.Object
de.hybris.platform.acceleratorservices.dataimport.batch.util.BatchDirectoryUtils

public final class BatchDirectoryUtils extends Object
Utility methods for folders accessed during batch import.
  • Method Details

    • getRelativeErrorDirectory

      public static String getRelativeErrorDirectory(File processedFile)
      Retrieves the relative error directory from the currently processed file
      Parameters:
      processedFile -
      Returns:
      error directory path
    • getRelativeArchiveDirectory

      public static String getRelativeArchiveDirectory(File processedFile)
      Retrieves the relative archive directory from the currently processed file
      Parameters:
      processedFile -
      Returns:
      error archive path
    • getRelativeBaseDirectory

      public static String getRelativeBaseDirectory(File processedFile)
      Retrieves the relative base directory from the currently processed file
      Parameters:
      processedFile -
      Returns:
      base directory path
    • verify

      public static String verify(String directory)
      Verifies, if the given directory path exists and if not, creates and verifies the directories
      Parameters:
      directory - to check
      Returns:
      verified directory (same reference)