File operation helpers. More...

#include <file_help.h>

Static Public Member Functions

static void copy_file (const std::string &from, const std::string &to, bool copy_always)
 Copy a file. More...
static void delete_file (const std::string &filename)
 Delete a file. More...
static bool file_exists (const std::string &filename)
 Check if a file exists. More...

Detailed Description

File operation helpers.

Member Function Documentation

static void clan::FileHelp::copy_file ( const std::string from,
const std::string to,
bool  copy_always 

Copy a file.

fromWhere to copy from
toWhere to copy to
copy_alwaystrue = Copy, even if destination already exists. false = Do not copy if destination exists (throw a Exception)
static void clan::FileHelp::delete_file ( const std::string filename)

Delete a file.

filenameFile to delete
static bool clan::FileHelp::file_exists ( const std::string filename)

Check if a file exists.

filenameFile to check for existance

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