Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FileExists ¶
FileExists returns true if a file exists and is accessible, false otherwise
Types ¶
type Permission ¶
type Permission struct{}
Permission handles permissions for Unix and Windows
func NewPermission ¶
func NewPermission() (*Permission, error)
NewPermission creates a new instance of `Permission`
func (*Permission) RestrictAccessToUser ¶
func (p *Permission) RestrictAccessToUser(path string) error
RestrictAccessToUser restricts the access to the user (chmod 700)
Click to show internal directories.
Click to hide internal directories.