TemporaryDir Service

The TemporaryDir service creates a unique directory for temporary use.

Available Operations

Constructor

TemporaryDir()

Allocates and returns a new TemporaryDir object. This method creates the temporary directory.

isValid

isValid(): boolean

Returns true if the temporary directory was created successfully.

path

path(): string

Returns the path to the temporary directory. Empty if the temporary directory could not be created.

remove

remove(): boolean

Removes the temporary directory, including all its contents. Returns true if removing was successful. It is recommended to always call this function as soon as you are finished with the temporary directory. The directory will not be removed automatically.

© 2022 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.