clan::FileHelp Class Reference - ClanLib SDK
Description: clan::FileHelp Class Reference

Static Public Member Functions | List of all members
clan::FileHelp Class Reference
clanCore I/O Data

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.
static void | delete_file (const std::string &filename)
| Delete a file.
static bool | file_exists (const std::string &filename)
| Check if a file exists.

## Detailed Description

File operation helpers.

## Member Function Documentation

## ◆ copy_file()

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

Copy a file.

Parameters

  from | Where to copy from
  to | Where to copy to
  copy_always | true = Copy, even if destination already exists. false = Do not copy if destination exists (throw a Exception)

## ◆ delete_file()

void clan::FileHelp::delete_file | ( | const std::string & | filename | ) |
| static

Delete a file.

Parameters

  filename | File to delete

## ◆ file_exists()

bool clan::FileHelp::file_exists | ( | const std::string & | filename | ) |
| static

Check if a file exists.

Parameters

  filename | File to check for existance

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

- file_help.h