afero icon indicating copy to clipboard operation
afero copied to clipboard

Add check for path separator to TempDir

Open leonrosenshein opened this issue 1 year ago • 1 comments

Since GO 1.17, ioutil.TempDir has called MkdirTemp for it's implementation. Since at least October of 2020, MkdirTemp has checked the input prefix for os.PathSeparator. This PR adds that check and returns an error in that case.

The PR also includes some basic tests for the TempDir function.

leonrosenshein avatar Jul 10 '23 03:07 leonrosenshein

CLA assistant check
All committers have signed the CLA.

CLAassistant avatar Jul 10 '23 03:07 CLAassistant