org.eclipse.core.tests.harness
Class FileSystemHelper

java.lang.Object
  extended by org.eclipse.core.tests.harness.FileSystemHelper

public class FileSystemHelper
extends java.lang.Object

Home for file system-related utility methods.


Constructor Summary
FileSystemHelper()
           
 
Method Summary
static void clear(java.io.File file)
           
static org.eclipse.core.runtime.IPath computeRandomLocation(org.eclipse.core.runtime.IPath parent)
           
static org.eclipse.core.runtime.IPath getRandomLocation(org.eclipse.core.runtime.IPath parent)
          Returns a unique location on disk.
static org.eclipse.core.runtime.IPath getTempDir()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileSystemHelper

public FileSystemHelper()
Method Detail

getTempDir

public static org.eclipse.core.runtime.IPath getTempDir()

getRandomLocation

public static org.eclipse.core.runtime.IPath getRandomLocation(org.eclipse.core.runtime.IPath parent)
Returns a unique location on disk. It is guaranteed that no file currently exists at that location. The returned location will be unique with respect to all other locations generated by this method in the current session. If the caller creates a folder or file at this location, they are responsible for deleting it when finished.


computeRandomLocation

public static org.eclipse.core.runtime.IPath computeRandomLocation(org.eclipse.core.runtime.IPath parent)

clear

public static void clear(java.io.File file)