Compare commits

..

3 Commits

Author SHA1 Message Date
Pieter Noordhuis b753bbe398
Merge 16e5e788f1 into f0aa673be4 2024-11-19 16:55:04 +01:00
Pieter Noordhuis 16e5e788f1
Fix template initialization when running on Databricks 2024-11-19 16:54:44 +01:00
Pieter Noordhuis f0aa673be4
Maintain mask invariant 2024-11-19 16:54:11 +01:00
2 changed files with 2 additions and 1 deletions

View File

@ -18,7 +18,7 @@ type WriteMode int
const writeModePerm = WriteMode(fs.ModePerm)
const (
OverwriteIfExists WriteMode = writeModePerm + 1<<iota
OverwriteIfExists WriteMode = (writeModePerm + 1) << iota
CreateParentDirectories
)

View File

@ -8,4 +8,5 @@ import (
func TestWriteMode(t *testing.T) {
assert.Equal(t, 512, int(OverwriteIfExists))
assert.Equal(t, 1024, int(CreateParentDirectories))
}