com.atlassian.jira.webtests.util
Class TempDirectoryUtil

java.lang.Object
  extended by com.atlassian.jira.webtests.util.TempDirectoryUtil

public class TempDirectoryUtil
extends Object

This util class was added to be able to create a "temporary" directory. This is basically a copy of the JIRA TempDirectoryUtil class, added here so Func tests can use it.

Since:
v3.13

Constructor Summary
TempDirectoryUtil()
           
 
Method Summary
static File createTempDirectory(String prefix)
          Creates an empty directory in the default temporary-file directory, using the given prefix and suffix to generate its name.
static String getSystemTempDir()
          Returns the system's temp directory.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TempDirectoryUtil

public TempDirectoryUtil()
Method Detail

createTempDirectory

public static File createTempDirectory(String prefix)
Creates an empty directory in the default temporary-file directory, using the given prefix and suffix to generate its name.

Parameters:
prefix - The prefix string to be used in generating the directory's name.
Returns:
A File object denoting a newly-created empty directory
Since:
4.0

getSystemTempDir

public static String getSystemTempDir()
Returns the system's temp directory.

Be aware that some operating systems place a trailing slash and others don't.

Returns:
the system's temp directory.


Copyright © 2002-2012 Atlassian. All Rights Reserved.