Class Util
java.lang.Object
de.hsh.graja.transform.submission.Util
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic 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.
-
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 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
-