Uh oh!
There was an error while loading. Please reload this page.
Improve unique directory generation for temp files - #7520
Conversation
Refactor unique directory creation logic to use random file names.
There was a problem hiding this comment.
Pull Request Overview
This PR refactors the unique directory creation logic for temporary files to use random file names instead of incrementing directory numbers. The change replaces a counter-based approach with a random filename approach to generate unique temporary directory names.
- Replaces incremental directory numbering with random filename generation
- Simplifies the directory creation loop logic
- Updates the directory naming pattern from
ml_dotnet{number}toml_dotnet_{randomfilename}
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Uh oh!
There was an error while loading. Please reload this page.
ericstj
commented
Oct 22, 2025
/backport to release/4.0 |
Started backporting to release/4.0: https://github.com/dotnet/machinelearning/actions/runs/18728685429 |
Refactor unique directory creation logic to use random file names.
Fixes#7485