spf13 / afero

A FileSystem Abstraction System for Go
Apache License 2.0
5.79k stars 498 forks source link

Add check for path separator to TempDir #393

Open leonrosenshein opened 12 months ago

leonrosenshein commented 12 months ago

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.

CLAassistant commented 12 months ago

CLA assistant check
All committers have signed the CLA.