package filer import ( "context" "fmt" "io" "io/fs" ) // WriteMode captures intent when writing a file. // // The first 9 bits are reserved for the [fs.FileMode] permission bits. // These are used only by the local filer implementation and have // no effect for the other implementations. type WriteMode int // writeModePerm is a mask to extract permission bits from a WriteMode. const writeModePerm = WriteMode(fs.ModePerm) const ( OverwriteIfExists WriteMode = writeModePerm + 1<