Skip to content

feat: add CreateEmptyTemporaryDirectory to support temporary directories without changing current directory#1024

Open
agc93 wants to merge 1 commit into
Testably:mainfrom
agc93:feature/cleanup-directory-helper
Open

feat: add CreateEmptyTemporaryDirectory to support temporary directories without changing current directory#1024
agc93 wants to merge 1 commit into
Testably:mainfrom
agc93:feature/cleanup-directory-helper

Conversation

@agc93
Copy link
Copy Markdown

@agc93 agc93 commented May 28, 2026

  • Extended DirectoryCleaner with an optional parameter to avoid changing the current directory.
  • Added CreateEmptyTemporaryDirectory to FileSystemInitializerExtensions.
  • Updated tests to validate directory creation and ensure current directory remains unchanged.

Resolves #1023

There's almost certainly problems in here, but it might be a start

…ories without changing current directory

- Extended `DirectoryCleaner` with an optional parameter to avoid changing the current directory.
- Added `CreateEmptyTemporaryDirectory` to `FileSystemInitializerExtensions`.
- Updated tests to validate directory creation and ensure current directory remains unchanged.
@agc93 agc93 changed the title Add CreateEmptyTemporaryDirectory to support temporary directories without changing current directory feat: add CreateEmptyTemporaryDirectory to support temporary directories without changing current directory May 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Allow creating a directory with automatic cleanup without affecting CurrentDirectory

1 participant