PeanutButter
Loading...
Searching...
No Matches
PeanutButter.Utils.AutoWorkFolder Class Reference

Performs work within the provided working folder and then skips out of there. Probably not a good idea to use whilst performing parallel processing as it changes the entire CWD for the current process! More...

Inheritance diagram for PeanutButter.Utils.AutoWorkFolder:

Public Member Functions

 AutoWorkFolder ()
 Constructs the auto work dir with a temporary folder backed by AutoTempFolder.
 AutoWorkFolder (AutoTempFolder tempFolder)
 Constructs the auto work dir with the provided temp folder, but will not dispose of the temp folder!
 AutoWorkFolder (AutoTempFolder tempFolder, bool disposeTempFolderWhenDone)
 Constructs the auto work dir with the provided temp folder and will own disposal of that temp folder.
 AutoWorkFolder (string folder)
 Constructs the auto work dir with the provided path to a folder.
void Dispose ()

Detailed Description

Performs work within the provided working folder and then skips out of there. Probably not a good idea to use whilst performing parallel processing as it changes the entire CWD for the current process!

Constructor & Destructor Documentation

◆ AutoWorkFolder() [1/3]

PeanutButter.Utils.AutoWorkFolder.AutoWorkFolder ( AutoTempFolder tempFolder)

Constructs the auto work dir with the provided temp folder, but will not dispose of the temp folder!

Parameters
tempFolder

◆ AutoWorkFolder() [2/3]

PeanutButter.Utils.AutoWorkFolder.AutoWorkFolder ( AutoTempFolder tempFolder,
bool disposeTempFolderWhenDone )

Constructs the auto work dir with the provided temp folder and will own disposal of that temp folder.

Parameters
tempFolder
disposeTempFolderWhenDone

◆ AutoWorkFolder() [3/3]

PeanutButter.Utils.AutoWorkFolder.AutoWorkFolder ( string folder)

Constructs the auto work dir with the provided path to a folder.

Parameters
folder

The documentation for this class was generated from the following file:
  • source/Utils/PeanutButter.Utils/AutoWorkFolder.cs