Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var NewGlobalTrcaker = memory.NewGlobalTracker
NewGlobalTrcaker creates a global disk tracker.
View Source
var NewTracker = memory.NewTracker
NewTracker creates a disk tracker.
- "label" is the label used in the usage string.
- "bytesLimit <= 0" means no limit.
Functions ¶
func CheckAndCreateDir ¶
CheckAndCreateDir check whether the directory is existed. If not, then create it.
func CheckAndInitTempDir ¶
func CheckAndInitTempDir() (err error)
CheckAndInitTempDir check whether the temp directory is existed. If not, initializes the temp directory.
func InitializeTempDir ¶
func InitializeTempDir() error
InitializeTempDir initializes the temp directory.
Types ¶
Click to show internal directories.
Click to hide internal directories.