Andrey Meshkov b6a98906a5 Sync v2.0
2022-08-26 14:18:35 +03:00

19 lines
516 B
Go

package agd
import (
"io/fs"
"os"
)
// OS-Related Constants
// DefaultWOFlags is the default set of flags for opening a write-only files.
const DefaultWOFlags = os.O_APPEND | os.O_CREATE | os.O_WRONLY
// DefaultPerm is the default set of permissions for non-executable files. Be
// strict and allow only reading and writing for the file, and only to the user.
const DefaultPerm fs.FileMode = 0o600
// DefaultDirPerm is the default set of permissions for directories.
const DefaultDirPerm fs.FileMode = 0o700