File operation helpers.
More...
#include <file_help.h>
|
| 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.
|
| |
◆ copy_file()
| static 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()
| static void clan::FileHelp::delete_file |
( |
const std::string & | filename | ) |
|
|
static |
Delete a file.
- Parameters
-
◆ file_exists()
| static 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: