We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f0aa673 commit cf84decCopy full SHA for cf84dec
libs/filer/filer.go
@@ -18,6 +18,8 @@ type WriteMode int
18
const writeModePerm = WriteMode(fs.ModePerm)
19
20
const (
21
+ // Note: these constants are defined as powers of 2 to support combining them using a bit-wise OR.
22
+ // They starts from the 10th bit (permission mask + 1) to avoid conflicts with the permission bits.
23
OverwriteIfExists WriteMode = (writeModePerm + 1) << iota
24
CreateParentDirectories
25
)
0 commit comments