Package org.vrspace.server.core
Class FileUtil
java.lang.Object
org.vrspace.server.core.FileUtil
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
Returns absolute name of content directorystatic File
Returns location of downloads directory: either Downloads under user home directory, or temporary directorystatic String
Returns absolute name of uploaded content directorystatic Path
Unzip a file to a directorystatic String
Returns absolute name of uploaded content directory
-
Constructor Details
-
FileUtil
public FileUtil()
-
-
Method Details
-
downloadDir
Returns location of downloads directory: either Downloads under user home directory, or temporary directory -
contentDir
Returns absolute name of content directory -
uploadDir
Returns absolute name of uploaded content directory -
generatedContentDir
Returns absolute name of uploaded content directory -
unzip
Unzip a file to a directory- Parameters:
file
- zip to unzipdir
- where to- Returns:
- newly created directory containing extracted files
- Throws:
IOException
- if anything goes wrong
-