Skip to content

Commit

Permalink
♻️ refactor for source-inclusion
Browse files Browse the repository at this point in the history
  • Loading branch information
fluffynuts committed May 17, 2024
1 parent e62ea4a commit a379d8d
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions source/Utils/PeanutButter.Utils/AutoWorkFolder.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
using System;
using PeanutButter.Utils;
#if BUILD_PEANUTBUTTER_INTERNAL
namespace Imported.PeanutButter.Utils;
#else
namespace PeanutButter.Utils;
#endif

/// <summary>
/// Performs work within the provided working
Expand All @@ -9,7 +13,12 @@
/// changes the entire CWD for the current
/// process!
/// </summary>
public class AutoWorkFolder : IDisposable
#if BUILD_PEANUTBUTTER_INTERNAL
internal
#else
public
#endif
class AutoWorkFolder : IDisposable
{
private AutoTempFolder _tempFolder;
private readonly string _startDir;
Expand All @@ -30,7 +39,7 @@ public AutoWorkFolder() : this(new AutoTempFolder(), true)
/// <param name="tempFolder"></param>
public AutoWorkFolder(
AutoTempFolder tempFolder
): this(tempFolder, false)
) : this(tempFolder, false)
{
}

Expand All @@ -44,7 +53,7 @@ AutoTempFolder tempFolder
public AutoWorkFolder(
AutoTempFolder tempFolder,
bool disposeTempFolderWhenDone
): this(tempFolder.Path)
) : this(tempFolder.Path)
{
if (disposeTempFolderWhenDone)
{
Expand Down

0 comments on commit a379d8d

Please sign in to comment.