Class BatchDirectoryUtils
java.lang.Object
de.hybris.platform.acceleratorservices.dataimport.batch.util.BatchDirectoryUtils
Utility methods for folders accessed during batch import.
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetRelativeArchiveDirectory(File processedFile) Retrieves the relative archive directory from the currently processed filestatic StringgetRelativeBaseDirectory(File processedFile) Retrieves the relative base directory from the currently processed filestatic StringgetRelativeErrorDirectory(File processedFile) Retrieves the relative error directory from the currently processed filestatic StringVerifies, if the given directory path exists and if not, creates and verifies the directories
-
Method Details
-
getRelativeErrorDirectory
Retrieves the relative error directory from the currently processed file- Parameters:
processedFile-- Returns:
- error directory path
-
getRelativeArchiveDirectory
Retrieves the relative archive directory from the currently processed file- Parameters:
processedFile-- Returns:
- error archive path
-
getRelativeBaseDirectory
Retrieves the relative base directory from the currently processed file- Parameters:
processedFile-- Returns:
- base directory path
-
verify
Verifies, if the given directory path exists and if not, creates and verifies the directories- Parameters:
directory- to check- Returns:
- verified directory (same reference)
-