Package com.embabel.agent.tools.file
Object FileWriteTools.Companion
-
- All Implemented Interfaces:
public class FileWriteTools.Companion
-
-
Field Summary
Fields Modifier and Type Field Description public final static FileWriteTools.CompanionINSTANCE
-
Method Summary
Modifier and Type Method Description final FilecreateTempDir(String seed)Create a temporary directory using the given seed final FileextractZipFile(File zipFile, File tempDir, Boolean delete)Extract zip file to a temporary directory -
-
Method Detail
-
createTempDir
final File createTempDir(String seed)
Create a temporary directory using the given seed
-
extractZipFile
final File extractZipFile(File zipFile, File tempDir, Boolean delete)
Extract zip file to a temporary directory
- Parameters:
zipFile- the zip file to extracttempDir- directory to extract it underdelete- if true, delete the zip file after extraction- Returns:
the path to the extracted file content
-
-
-
-