DirectoryGuard Class | Qt Installer Framework Manual

- Qt Installer Framework Manual
- DirectoryGuard

# DirectoryGuard 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

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

## Member Function Documentation

### DirectoryGuard::DirectoryGuard(const QString &path)

Default constructs an instance of DirectoryGuard.

### DirectoryGuard::~DirectoryGuard()

Destroys the instance of DirectoryGuard.

### void DirectoryGuard::release()

### QStringList DirectoryGuard::tryCreate()