Documentation
¶
Overview ¶
Package fileutil provides cross-platform secure file operations. On Unix, these are thin wrappers around the standard os functions. On Windows, owner-only modes (perm & 0077 == 0) additionally set a DACL restricting access to the current user.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SecureChmod ¶
SecureChmod changes the mode of the named file. On Windows, owner-only modes get a restrictive DACL.
func SecureMkdirAll ¶
SecureMkdirAll creates a directory path and all parents that do not yet exist. On Windows, owner-only modes get a restrictive DACL.
func SecureOpenFile ¶
SecureOpenFile opens the named file with specified flag and permissions. On Windows, owner-only modes with O_CREATE get a restrictive DACL.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.