MeVisLab Toolbox Reference
macos::Backup Class Reference

Backup related functions. More...

#include <macBackup.h>

Static Public Member Functions

static bool setItemExcluded (const std::string &item, bool exclude=true)
 Includes or excludes an existing item from the backup (UTF8) More...
 
static bool setPathExcluded (const std::string &path, bool exclude=true)
 Includes or excludes a path from the backup (UTF8) More...
 

Detailed Description

Backup related functions.

Definition at line 26 of file macBackup.h.

Member Function Documentation

◆ setItemExcluded()

static bool macos::Backup::setItemExcluded ( const std::string &  item,
bool  exclude = true 
)
static

Includes or excludes an existing item from the backup (UTF8)

This item is excluded regardless of its location (and regardless of whether the user moves the item). The item must already exist

Parameters
[in]itemThe path of an existing file or folder to be included or excluded from the backup (UTF8)
[in]excludePass true to exclude this item from backup (Backup will not back up this item). Pass false to stop excluding this item (Backup will back up this item if the user so chooses)
Returns
Returns true if the item was successfully included or excluded from the backup

◆ setPathExcluded()

static bool macos::Backup::setPathExcluded ( const std::string &  path,
bool  exclude = true 
)
static

Includes or excludes a path from the backup (UTF8)

The path is excluded because of its location (its absolute path)

Parameters
[in]pathThe path to be included or excluded from the backup (UTF8)
[in]excludePass true to exclude this path from backup (Backup will not back up this path). Pass false to stop excluding this path (Backup will back up this path if the user so chooses)
Returns
Returns true if the path was successfully included or excluded from the backup

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