github.com/viant/toolbox@v0.34.5/os_helper_test.go (about) 1 package toolbox_test 2 3 import ( 4 "github.com/stretchr/testify/assert" 5 "github.com/viant/toolbox" 6 "testing" 7 ) 8 9 func TestCreateDirIfNotExist(t *testing.T) { 10 dir := "/tmp/abc" 11 toolbox.RemoveFileIfExist(dir) 12 toolbox.CreateDirIfNotExist(dir) 13 assert.True(t, toolbox.FileExists(dir)) 14 toolbox.RemoveFileIfExist(dir) 15 assert.False(t, toolbox.FileExists(dir)) 16 }