Class Util
- java.lang.Object
-
- de.hsh.graja.transform.submission.Util
-
public class Util extends Object
-
-
Constructor Summary
Constructors Constructor Description Util()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Path
createSpaceLimitedTempFolder(Path parentDir, String folderName, int quota, ContentLogger commentsToExtend)
Creates a subfolder below parentDir.static boolean
deleteSpaceLimitedTempFolder(Path folder, ContentLogger commentsToExtend)
The specified folder will be deleted.
-
-
-
Method Detail
-
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 subfolderquota
- maximum space in kibibytescommentsToExtend
- 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
- pathnamecommentsToExtend
- 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
-
-