[*] Update temp path/dir filenames

This commit is contained in:
Reece Wilson 2024-03-11 17:14:59 +00:00
parent f401c6f750
commit bd83945f4d

View File

@ -531,7 +531,7 @@ namespace Aurora::IO::FS
return {}; return {};
} }
path += fmt::format("TempFile_{}", AuRNG::ReadString(128, AuRNG::ERngStringCharacters::eNumericCharacters)); path += fmt::format("TempFile_{}", AuRNG::ReadString(64, AuRNG::ERngStringCharacters::eAlphaNumericCharacters));
if (!AuFS::WriteNewFile(path, {})) if (!AuFS::WriteNewFile(path, {}))
{ {
@ -560,7 +560,7 @@ namespace Aurora::IO::FS
return {}; return {};
} }
path += fmt::format("TempDirectory_{}", AuRNG::ReadString(64, AuRNG::ERngStringCharacters::eNumericCharacters)); path += fmt::format("TempDirectory_{}", AuRNG::ReadString(32, AuRNG::ERngStringCharacters::eAlphaNumericCharacters));
if (!_MkDir(path)) if (!_MkDir(path))
{ {