for (int i = 0; i < nodes.length; i++) {
String contents = getResourceContents(nodes[i]);
IPath path = new Path(Activator.getDefault().getStateLocation().toOSString() +
File.separator + "t" + //$NON-NLS-1$
String.valueOf(System.currentTimeMillis()));
if (!path.toFile().mkdir()) {
throw new Exception("Could not create directory " + path.toOSString()); //$NON-NLS-1$
}
path.toFile().deleteOnExit();
File transfer = new File(path + File.separator + nodes[i].getName());
transfer.deleteOnExit();