File operation helpers. More...
#include <file_help.h>
Static Public Member Functions | |
Operations | |
| static void | copy_file (const CL_String &from, const CL_String &to, bool copy_always) |
| Copy a file. | |
| static void | delete_file (const CL_String &filename) |
| Delete a file. | |
| static bool | file_exists (const CL_String &filename) |
| Check if a file exists. | |
File operation helpers.
| static void CL_FileHelp::copy_file | ( | const CL_String & | from, | |
| const CL_String & | to, | |||
| bool | copy_always | |||
| ) | [static] |
Copy a file.
| 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 CL_Exception) |
| static void CL_FileHelp::delete_file | ( | const CL_String & | filename | ) | [static] |
Delete a file.
| filename | File to delete |
| static bool CL_FileHelp::file_exists | ( | const CL_String & | filename | ) | [static] |
Check if a file exists.
| filename | File to check for existance |
1.7.1