Documentation
¶
Overview ¶
Package fs holds some utilities for manipulating the file system
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateSecureFile ¶
CreateSecureFile creates a file with wr permission for user only and returns the file handle.
func CreateSecureFolder ¶
CreateSecureFolder checks if the folder exists and has the appropriate permission rights. In case of bad permission rights) the empty string is returned.If the folder doesn't exist it creates it.
func FileExists ¶
FileExists returns true if the given name is a file in the given path. name must be the "basename" of the file and path must be the folder where it lies.
func HomeFolder ¶ added in v0.3.7
func HomeFolder() string
HomeFolder returns the home folder of the current user
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.