DirectoryGuard Class | Qt Installer Framework Manual

- Qt Installer Framework Manual
- DirectoryGuard

# DirectoryGuard Class

class QInstaller::DirectoryGuard

RAII class to create a directory and delete it on destruction unless released. More...

Header: | #include <DirectoryGuard>

- List of all members, including inherited members

## Public Functions

| DirectoryGuard(const QString &path)
| ~DirectoryGuard()
void | release()
QStringList | tryCreate()

## Detailed Description

## Member Function Documentation

### `[explicit]` DirectoryGuard::DirectoryGuard(const QString &path)

Constructs a new guard object for path.

### `[noexcept]` DirectoryGuard::~DirectoryGuard()

Destroys the directory guard instance and removes the guarded directory unless released.

### void DirectoryGuard::release()

Marks the directory as released.

### QStringList DirectoryGuard::tryCreate()

Tries to create the directory structure. Returns a list of every directory created.