Qore FsUtil Module Reference 1.3
Loading...
Searching...
No Matches
FsUtil::TmpDir Class Reference

Class implementing a user friendly temporary directory creation. More...

#include <FsUtil.qm.dox.h>

Inheritance diagram for FsUtil::TmpDir:
[legend]

Public Member Methods

 constructor (*string prefix, *string suffix, *string path)
 Creates a unique temporary directory and returns its absolute path. More...
 

Public Attributes

string path
 The path to the temporary directory created in the constructor.
 

Detailed Description

Class implementing a user friendly temporary directory creation.

The directory and all its contents are removed in the destructor

Since
FsUtil 1.1 inherits Qore::Dir

Member Function Documentation

◆ constructor()

FsUtil::TmpDir::constructor ( *string  prefix,
*string  suffix,
*string  path 
)

Creates a unique temporary directory and returns its absolute path.

Parameters
prefixprefix to be used in the newly created directory name
suffixsuffix to be used in the newly created directory name
pathpath to a dir in which the caller wants to create the new directory; if not provided, the standard temp location will be used