com::cosylab::util::FileHelper Class Reference

List of all members.

Static Public Member Functions

static String getTempFileName (String fileNameProperty, String fileName)
static void setFileAttributes (String attribs, String filePath)
static void copy (File source, File dest, boolean preserveTime) throws IOException

Detailed Description

Author:
dvitas

Member Function Documentation

static void com::cosylab::util::FileHelper::copy ( File  source,
File  dest,
boolean  preserveTime 
) throws IOException [inline, static]

Copies file source to location dest. Necessary directories are created automatically. The modification time is preserved if preserveTime is true.

static String com::cosylab::util::FileHelper::getTempFileName ( String  fileNameProperty,
String  fileName 
) [inline, static]

Method getTempFileName. This is a copy from C++ acsutilTempFile

Parameters:
fileNameEnvVar 
fileName 
Returns:
String
static void com::cosylab::util::FileHelper::setFileAttributes ( String  attribs,
String  filePath 
) [inline, static]

Tries to set attributes given by attribs on given file by executing "chmod -R attribs filePath" as external process. If it fails or there is no such command on current OS it does nothing naither printouts the error.

Parameters:
attribs 
filePath 

The documentation for this class was generated from the following file:

Generated by  doxygen 1.6.2