Class Util

java.lang.Object
de.hsh.graja.transform.submission.Util

public class Util extends Object
  • Constructor Details

    • Util

      public Util()
  • Method Details

    • createSpaceLimitedTempFolder

      public static Path createSpaceLimitedTempFolder(Path parentDir, String folderName, int quota, ContentLogger commentsToExtend) throws de.hsh.graja.transform.submission.Util.ScriptException
      Creates a subfolder below parentDir. The subfolder gets a specified folderName. On unix platforms the created folder will be space limited (loop device).
      Parameters:
      folderName - name of the subfolder
      quota - maximum space in kibibytes
      commentsToExtend - the comment stream of this id may be appended with comments during the directory creation process.
      Returns:
      the path of the created folder
      Throws:
      de.hsh.graja.transform.submission.Util.ScriptException
    • deleteSpaceLimitedTempFolder

      public static boolean deleteSpaceLimitedTempFolder(Path folder, ContentLogger commentsToExtend) throws de.hsh.graja.transform.submission.Util.ScriptException
      The specified folder will be deleted.
      Parameters:
      folder - pathname
      commentsToExtend - the comment stream of this id may be appended with comments during the directory deletion process.
      Returns:
      true on success
      Throws:
      de.hsh.graja.transform.submission.Util.ScriptException